correction typing message in on_message
This commit is contained in:
parent
5a45012175
commit
1804f6d1e2
1 changed files with 4 additions and 1 deletions
|
@ -410,7 +410,10 @@ def main():
|
|||
f.write(message.content + '\n')
|
||||
response = random.choice(lines).replace(str(bot.user.id), str(message.author.id))
|
||||
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 bot.process_commands(message)
|
||||
|
||||
|
|
Loading…
Reference in a new issue