correction typing message in on_message

This commit is contained in:
BFlow 2020-04-20 16:15:19 +02:00
parent 5a45012175
commit 1804f6d1e2

View file

@ -410,7 +410,10 @@ def main():
f.write(message.content + '\n') f.write(message.content + '\n')
response = random.choice(lines).replace(str(bot.user.id), str(message.author.id)) response = random.choice(lines).replace(str(bot.user.id), str(message.author.id))
with message.channel.typing(): with message.channel.typing():
await asyncio.sleep(len(response)/2) if "http" in response:
await asyncio.sleep(len(response)/5)
else:
await asyncio.sleep(len(response)/4)
await message.channel.send(response) await message.channel.send(response)
await bot.process_commands(message) await bot.process_commands(message)