add typing message in on_message
This commit is contained in:
parent
53d7c61841
commit
b5c00d5504
1 changed files with 2 additions and 0 deletions
|
@ -409,6 +409,8 @@ def main():
|
||||||
with open(path, 'a') as f :
|
with open(path, 'a') as f :
|
||||||
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():
|
||||||
|
sleep(len(response))
|
||||||
await message.channel.send(response)
|
await message.channel.send(response)
|
||||||
await bot.process_commands(message)
|
await bot.process_commands(message)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue