Removed printing of invalid commands
This commit is contained in:
parent
6e163eb080
commit
73bbede667
5
bot.py
5
bot.py
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue