Rearranged the 'fails' for boops, to not cause an error when none is provided
This commit is contained in:
parent
911eb41459
commit
6c8b592d12
|
@ -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')
|
||||
|
||||
|
|
Loading…
Reference in a new issue