correction typing message in on_message

This commit is contained in:
BFlow 2020-04-20 16:06:17 +02:00
parent b5c00d5504
commit 5a45012175

View file

@ -410,7 +410,7 @@ 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():
sleep(len(response)) await asyncio.sleep(len(response)/2)
await message.channel.send(response) await message.channel.send(response)
await bot.process_commands(message) await bot.process_commands(message)