Skip to content
Open
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
14 changes: 14 additions & 0 deletions cogs/randcommands.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,8 @@ async def uuid(self, ctx, username: str):
@commands.command(help="Slap someone.")
@commands.guild_only()
async def slap(self, ctx, user: discord.Member):
if user.id == 234649992357347328:
return await reply(ctx, "You fool >:D")
slap_role = discord.utils.get(ctx.guild.roles, name="Slapped")
if slap_role is None:
return await reply(ctx, "No slapped rank :(")
Expand All @@ -179,6 +181,18 @@ async def slap(self, ctx, user: discord.Member):
await asyncio.sleep(3_600) # 1 hour
await user.remove_roles(slap_role)

@commands.command(help="Unslap someone. Staff only.")
@commands.guild_only()
@is_staff()
async def unslap(self, ctx, user: discord.Member):
slap_role = discord.utils.get(ctx.guild.roles, name="Slapped")
if slap_role is None:
return await reply(ctx, "No slapped rank :(")
if slap_role not in user.roles:
return await reply(ctx, "User is not slapped.")
await user.remove_roles(slap_role)
await reply(ctx, f"unslapped {user.mention}")

@commands.command(help="pikl someone.")
@commands.guild_only()
@is_staff()
Expand Down