From b5c00d55044522c55729699e67c80ea5e7360e98 Mon Sep 17 00:00:00 2001 From: BFlow Date: Mon, 20 Apr 2020 16:02:20 +0200 Subject: [PATCH] add typing message in on_message --- kabot/kabot/kabot.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kabot/kabot/kabot.py b/kabot/kabot/kabot.py index b84a3ff..0582c81 100644 --- a/kabot/kabot/kabot.py +++ b/kabot/kabot/kabot.py @@ -409,6 +409,8 @@ def main(): with open(path, 'a') as f : 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 message.channel.send(response) await bot.process_commands(message)