better timing

This commit is contained in:
lickthecheese 2020-04-17 20:29:40 -04:00
parent 305aaee2bd
commit eb5db85421

4
bot.py
View file

@ -47,9 +47,9 @@ class Oven(pydle.Client):
print('messages are being sent too fast!') print('messages are being sent too fast!')
return 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') 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):] msg = msg[len(self.prefix):]
cmd = msg.split(' ')[0] cmd = msg.split(' ')[0]
msg = msg[len(cmd)+1:] msg = msg[len(cmd)+1:]