From 04226680973db7b47cc5ed92ec05e0fd5fa0e85b Mon Sep 17 00:00:00 2001 From: BFlow Date: Tue, 28 Apr 2020 15:01:58 +0200 Subject: [PATCH] =?UTF-8?q?ajustement=20du=20temps=20d'=C3=A9criture=20de?= =?UTF-8?q?=20kabot?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kabot/kabot/kabot.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/kabot/kabot/kabot.py b/kabot/kabot/kabot.py index 3df5032..e06d8cd 100644 --- a/kabot/kabot/kabot.py +++ b/kabot/kabot/kabot.py @@ -217,7 +217,7 @@ class Mybot(commands.Cog): elif piece == "face": result = avec_verbe with ctx.channel.typing(): - await asyncio.sleep(len(result)/4) + await asyncio.sleep(len(result)/6) await ctx.send(result) @commands.command(help="Toi tu fermes ta gueule! Tu la fermes définitivement") @@ -442,9 +442,9 @@ def main(): response = random.choice(lines).replace(str(bot.user.id), str(message.author.id)) with message.channel.typing(): if "http" in response: - await asyncio.sleep(len(response) / 5) + await asyncio.sleep(len(response) / 8) else: - await asyncio.sleep(len(response) / 4) + await asyncio.sleep(len(response) / 6) await message.channel.send(response) await bot.process_commands(message)