1
0
Fork 0
mirror of synced 2024-06-27 02:31:04 +12:00

Rearranged the 'fails' for boops, to not cause an error when none is provided

This commit is contained in:
phxntxm 2016-09-21 14:16:47 -05:00
parent 911eb41459
commit 6c8b592d12

View file

@ -169,6 +169,10 @@ class Interaction:
async def boop(self, ctx, boopee: discord.Member=None):
"""Boops the mentioned person"""
booper = ctx.message.author
if boopee is None:
ctx.command.reset_cooldown(ctx)
await self.bot.say("You try to boop the air, the air boops back. Be afraid....")
return
if boopee.id == booper.id:
ctx.command.reset_cooldown(ctx)
await self.bot.say("You can't boop yourself! Silly...")
@ -177,9 +181,6 @@ 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')