Commit b046b14e authored by JacobMrox's avatar JacobMrox Committed by GitHub

Added typing indicator and asyncio.sleep

In order to make the chat bot feel more real
parent ee8e88a5
......@@ -55,6 +55,8 @@ class ChattyCathy:
yield from self.discord_client.process_commands(message)
else:
aiml_response = self.aiml_kernel.respond(message.content)
yield from self.discord_client.send_typing(message.channel)
yield from asyncio.sleep(4)
yield from self.discord_client.send_message(message.channel, aiml_response)
def run(self):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment