fixed crash on debug
This commit is contained in:
parent
363dcc3db5
commit
344df8ff3e
@ -183,13 +183,13 @@ async def on_message(message):
|
||||
dump = {}
|
||||
cooldowns = {}
|
||||
for key, value in client.cooldown.items():
|
||||
cooldowns[channel_name(key)] = value - time.time()
|
||||
cooldowns[await channel_name(key)] = value - time.time()
|
||||
dump['poil_au_cooldown'] = client.cooldown
|
||||
for key, value in client.ongoing_riddles.items():
|
||||
dump_channel = value
|
||||
dump_channel.pop("message", None)
|
||||
dump_channel['answer'] = '||{0}||'.format(dump_channel['answer'])
|
||||
dump[channel_name(key)] = dump_channel
|
||||
dump[await channel_name(key)] = dump_channel
|
||||
await message.author.send(json.dumps(dump, ensure_ascii=False, indent=4))
|
||||
return
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user