Stopped forbidden messages from logging, as it apperas all issues around them have been resolved
This commit is contained in:
parent
8bd014a345
commit
58e3913f91
2
bot.py
2
bot.py
|
@ -111,7 +111,7 @@ async def on_command_error(error, ctx):
|
|||
await bot.send_message(ctx.message.channel, fmt)
|
||||
elif isinstance(error, commands.MissingRequiredArgument):
|
||||
await bot.send_message(ctx.message.channel, error)
|
||||
elif not isinstance(error, commands.CommandNotFound):
|
||||
elif not isinstance(error, commands.CommandNotFound) or isinstance(error, discord.Forbidden):
|
||||
now = datetime.datetime.now()
|
||||
with open("error_log", 'a') as f:
|
||||
print("In server '{0.message.server}' at {1}\nFull command: `{0.message.content}`".format(ctx, str(now)),
|
||||
|
|
Loading…
Reference in a new issue