diff --git a/bot.py b/bot.py index b2df4ca..d87c88f 100644 --- a/bot.py +++ b/bot.py @@ -49,6 +49,8 @@ async def on_member_remove(member): @bot.event async def on_command_error(error, ctx): + if isinstance(error,discord.CommandNotFound): + await bot.send_message(ctx.message.channel,"That is not a valid command! If you need asistance on what command to use, please type '!help'") fmt = 'An error occurred while processing this request: ```py\n{}: {}\n```' await bot.send_message(ctx.message.channel,fmt.format(type(error).__name__, error))