mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-12-08 10:22:31 -05:00
Ignore command not found errors
This commit is contained in:
2
red.py
2
red.py
@@ -88,6 +88,8 @@ async def on_command_error(error, ctx):
|
|||||||
ctx.command.qualified_name, type(error.original).__name__,
|
ctx.command.qualified_name, type(error.original).__name__,
|
||||||
str(error.original))
|
str(error.original))
|
||||||
await ctx.bot.send_message(ctx.message.channel, inline(oneliner))
|
await ctx.bot.send_message(ctx.message.channel, inline(oneliner))
|
||||||
|
elif isinstance(error, commands.CommandNotFound):
|
||||||
|
pass
|
||||||
else:
|
else:
|
||||||
logger.exception(type(error).__name__, exc_info=error)
|
logger.exception(type(error).__name__, exc_info=error)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user