From 5a450121753337b302c5eb7c57c1c1a8060454c6 Mon Sep 17 00:00:00 2001 From: BFlow Date: Mon, 20 Apr 2020 16:06:17 +0200 Subject: [PATCH] correction typing message in on_message --- kabot/kabot/kabot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kabot/kabot/kabot.py b/kabot/kabot/kabot.py index 0582c81..0fb9c6f 100644 --- a/kabot/kabot/kabot.py +++ b/kabot/kabot/kabot.py @@ -410,7 +410,7 @@ def main(): f.write(message.content + '\n') response = random.choice(lines).replace(str(bot.user.id), str(message.author.id)) with message.channel.typing(): - sleep(len(response)) + await asyncio.sleep(len(response)/2) await message.channel.send(response) await bot.process_commands(message)