Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions cogs/randcommands.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,8 @@ async def uuid(self, ctx, username: str):
async def slap(self, ctx, user: discord.Member):
if user.id == 234649992357347328:
return await reply(ctx, "You fool! >:D")
elif self.bot.config["roles"]["unslappable"] in map(lambda r: r.id, user.roles):
return await reply(ctx, "This user cannot be slapped!")
slap_role = discord.utils.get(ctx.guild.roles, name="Slapped")
if slap_role is None:
return await reply(ctx, "No slapped role :(")
Expand Down
1 change: 1 addition & 0 deletions config.example.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ notifications:
description: "Get notified by Staff for trials"
role: 1295904929378074725
roles:
unslappable: 463778326696165377
trusted: 962782039403298887
staff: 617848463438118922
admin: 117711708847472645
Expand Down