Commit 2208c64f authored by NanoDano's avatar NanoDano Committed by GitHub

Tweaking sleep time before responding

Changed the response sleep time from 4 seconds to a random int between 1 and 3
parent b046b14e
import discord
import os
import random
import pkg_resources
from discord.ext import commands
import asyncio
......@@ -56,7 +57,7 @@ class ChattyCathy:
aiml_response = self.aiml_kernel.respond(message.content)
yield from self.discord_client.send_typing(
yield from asyncio.sleep(4)
yield from asyncio.sleep(random.randint(1,3))
yield from self.discord_client.send_message(, 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