ajustement du temps d'écriture de kabot

This commit is contained in:
BFlow 2020-04-28 15:01:58 +02:00
parent 64d3234cab
commit 0422668097

View file

@ -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)