X-Git-Url: https://jfr.im/git/erebus.git/blobdiff_plain/6b6f96245c014cffa2c2af1fc1fcd6733fea358a..dcc5bde3beb88310fdc2815383ba1509e3997607:/bot.py?ds=sidebyside diff --git a/bot.py b/bot.py index 8834724..d5d3971 100644 --- a/bot.py +++ b/bot.py @@ -51,9 +51,9 @@ class Bot(object): except: pass def watchdog(self): - if time.time() > self.parent.cfg.get('watchdog', 'maxtime', default=300)+self.lastreceived: + if time.time() > int(self.parent.cfg.get('watchdog', 'maxtime', default=300))+self.lastreceived: self.parse("ERROR :Fake-error from watchdog timer.") - self.watchdogtimer = MyTimer(self.parent.cfg.get('watchdog', 'interval', default=30), self.watchdog) + self.watchdogtimer = MyTimer(int(self.parent.cfg.get('watchdog', 'interval', default=30)), self.watchdog) def log(self, *args, **kwargs): self.parent.log(self.nick, *args, **kwargs)