Correct if logic to make sure first error hit is sent too
This commit is contained in:
parent
dd95bade31
commit
b6f2b74360
3
bot.py
3
bot.py
|
@ -93,7 +93,8 @@ async def on_command_error(ctx, error):
|
|||
else:
|
||||
if isinstance(bot.error_channel, int):
|
||||
bot.error_channel = bot.get_channel(bot.error_channel)
|
||||
elif bot.error_channel is None:
|
||||
|
||||
if bot.error_channel is None:
|
||||
now = datetime.datetime.now()
|
||||
with open("error_log", 'a') as f:
|
||||
print("In server '{0.message.guild}' at {1}\n"
|
||||
|
|
Loading…
Reference in a new issue