try to fix sleep
This commit is contained in:
parent
0f997c8168
commit
9681bb6067
1 changed files with 2 additions and 2 deletions
|
@ -166,7 +166,7 @@ def main():
|
|||
async def kron():
|
||||
kron_choice = random.choice(["kaamelott","slap","kaamelott",False])
|
||||
if kron_choice:
|
||||
asyncio.sleep(random.choice(range(3550)))
|
||||
await asyncio.sleep(random.choice(range(3550)))
|
||||
for channel in bot.get_all_channels():
|
||||
if channel.name == "général":
|
||||
current_chan = channel
|
||||
|
@ -185,7 +185,7 @@ def main():
|
|||
for channel in bot.get_all_channels():
|
||||
if channel.name == "général":
|
||||
current_chan = channel
|
||||
asyncio.sleep(random.choice(range(350)))
|
||||
await asyncio.sleep(random.choice(range(350)))
|
||||
ctx = await bot.get_context(current_chan.last_message)
|
||||
ctx.message.content = ""
|
||||
joke = bot.get_command('joke')
|
||||
|
|
Loading…
Reference in a new issue