1
0
Fork 0
mirror of https://github.com/myned/modufur.git synced 2024-12-24 14:27:27 +00:00

Added minimal logging of NotFound errors

This commit is contained in:
Myned 2017-12-10 17:18:37 -05:00
parent 878eb4de06
commit 5d64aaf55c

View file

@ -142,7 +142,7 @@ async def on_error(error, *args, **kwargs):
@bot.event
async def on_command_error(ctx, error):
if isinstance(error, err.NotFound):
pass
print('NOT FOUND')
elif isinstance(error, errext.CheckFailure):
await ctx.send('**Insufficient permissions**', delete_after=10)
await ctx.message.add_reaction('\N{NO ENTRY}')