From eb5db854213d139f72f21f51329b5da31766bb88 Mon Sep 17 00:00:00 2001 From: lickthecheese Date: Fri, 17 Apr 2020 20:29:40 -0400 Subject: [PATCH] better timing --- bot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bot.py b/bot.py index 06817fe..e96e34c 100755 --- a/bot.py +++ b/bot.py @@ -47,9 +47,9 @@ class Oven(pydle.Client): print('messages are being sent too fast!') return - if time.time()-1 < self.timeout: + if time.time()-1.5 < self.timeout: await self.message(chan, 'woah woah, slow it down there, or il get mad and wont bake your food') - self.timeout = time.time()+0.5 + self.timeout = time.time()+1 msg = msg[len(self.prefix):] cmd = msg.split(' ')[0] msg = msg[len(cmd)+1:]