1
0
Fork 0
mirror of synced 2024-06-01 10:19:38 +12:00

Added a message for when someone isn't provided to boop

This commit is contained in:
phxntxm 2016-09-21 14:04:37 -05:00
parent 99fad1d184
commit 70beca85fd

View file

@ -166,7 +166,7 @@ class Interaction:
@commands.command(pass_context=True, no_pm=True)
@commands.cooldown(1, 180, BucketType.user)
@checks.custom_perms(send_messages=True)
async def boop(self, ctx, boopee: discord.Member):
async def boop(self, ctx, boopee: discord.Member=None):
"""Boops the mentioned person"""
booper = ctx.message.author
if boopee.id == booper.id:
@ -177,6 +177,9 @@ class Interaction:
ctx.command.reset_cooldown(ctx)
await self.bot.say("Why the heck are you booping me? Get away from me >:c")
return
if boopee is None:
await self.bot.say("You try to boop the air, the air boops back. Be afraid....")
return
boops = await config.get_content('boops')