add typing message in on_message

This commit is contained in:
BFlow 2020-04-20 16:02:20 +02:00
parent 53d7c61841
commit b5c00d5504

View file

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