Added a message for when someone isn't provided to boop
This commit is contained in:
parent
99fad1d184
commit
70beca85fd
|
@ -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')
|
||||
|
||||
|
|
Loading…
Reference in a new issue