From 7de338c07424c4810c6119654d6ce640b3df1224 Mon Sep 17 00:00:00 2001 From: Phxntxm Date: Mon, 11 Jul 2016 06:40:53 -0500 Subject: [PATCH] Testing out the commands error --- bot.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bot.py b/bot.py index 072f6d3..bcc8f49 100644 --- a/bot.py +++ b/bot.py @@ -51,9 +51,9 @@ async def on_member_remove(member): @bot.event async def on_command_error(error, ctx): - if isinstance(error, discord.CommandNotFound): - fmt = "That is not a valid command! If you need asistance on what command to use, please type '!help'" - await bot.send_message(ctx.message.channel, fmt) + #if isinstance(error, discord.CommandNotFound): + # fmt = "That is not a valid command! If you need asistance on what command to use, please type '!help'" + # await bot.send_message(ctx.message.channel, fmt) fmt = 'An error occurred while processing this request: ```py\n{}: {}\n```' await bot.send_message(ctx.message.channel, fmt.format(type(error).__name__, error))