1
0
Fork 0
mirror of synced 2024-05-06 21:52:30 +12:00

Correct if logic to make sure first error hit is sent too

This commit is contained in:
Phxntxm 2019-11-19 17:29:12 -06:00
parent dd95bade31
commit b6f2b74360

3
bot.py
View file

@ -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"