Raising BadArgument error for homies

pull/8/head
sgoudham 4 years ago
parent 8a74a16713
commit b10692f7ae

@ -325,8 +325,8 @@ class Fun(commands.Cog):
await ctx.send(api_answer) await ctx.send(api_answer)
except Exception as e: except commands.BadArgument as e:
print(e) raise e
@command(name="homies", aliases=["Homies", "homie", "Homie"]) @command(name="homies", aliases=["Homies", "homie", "Homie"])
@cooldown(1, 10, BucketType.user) @cooldown(1, 10, BucketType.user)
@ -349,8 +349,9 @@ class Fun(commands.Cog):
# Send the image file stored in the directory # Send the image file stored in the directory
await ctx.send(file=discord.File('AllMyHomiesHateMeme.jpg')) await ctx.send(file=discord.File('AllMyHomiesHateMeme.jpg'))
except Exception as e:
print(e) except commands.BadArgument as e:
raise e
@command(name="owo", aliases=["Owo", "OwO"]) @command(name="owo", aliases=["Owo", "OwO"])
@cooldown(1, 1, BucketType.user) @cooldown(1, 1, BucketType.user)

Loading…
Cancel
Save