1
0
Fork 0
mirror of synced 2024-06-01 18:29:38 +12:00

Removed printing of invalid commands

This commit is contained in:
Phxntxm 2016-08-01 08:10:52 -05:00
parent 6e163eb080
commit 73bbede667

5
bot.py
View file

@ -63,10 +63,7 @@ async def on_member_remove(member):
@bot.event
async def on_command_error(error, ctx):
if isinstance(error, commands.CommandNotFound):
fmt = "That is not a valid command! There's a help command for a reason, learn to use it."
#await bot.send_message(ctx.message.channel, fmt)
elif isinstance(error, commands.BadArgument):
if isinstance(error, commands.BadArgument):
fmt = "Please provide a valid argument to pass to the command: {}".format(error)
await bot.send_message(ctx.message.channel, fmt)
elif isinstance(error, commands.CheckFailure):