From 4d404baedca7e4ce563071d7a6b2c9cd96373395 Mon Sep 17 00:00:00 2001 From: Milka64 Date: Mon, 18 Nov 2019 17:06:56 +0100 Subject: [PATCH] fix sleep --- kabot/kabot/kabot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kabot/kabot/kabot.py b/kabot/kabot/kabot.py index 61c3f17..e95d280 100644 --- a/kabot/kabot/kabot.py +++ b/kabot/kabot/kabot.py @@ -166,7 +166,7 @@ def main(): async def kron(): kron_choice = random.choice(["kaamelott","slap","kaamelott",False]) if kron_choice: - #sleep(random.choice(range(3550))) + 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 - #sleep(random.choice(range(350))) + asyncio.sleep(random.choice(range(350))) ctx = await bot.get_context(current_chan.last_message) ctx.message.content = "" joke = bot.get_command('joke')