From: Vincent Le Gallic Date: Sun, 12 Feb 2017 03:37:50 +0000 (+0100) Subject: Pas d'auto-spawn X-Git-Url: http://gitweb.pimeys.fr/?a=commitdiff_plain;h=d55302322e69fe1384f803bfd0d15b396aa22054;p=bots%2Fsalesman.git Pas d'auto-spawn --- diff --git a/salesman.py b/salesman.py index fa5e81e..d7e0044 100755 --- a/salesman.py +++ b/salesman.py @@ -122,10 +122,10 @@ class Salesman(ircbot.SingleServerIRCBot): for c in self.chanlist: log(self.serveur,"JOIN %s"%(c)) serv.join(c) - for c in self.play_channels: - token=time.time()-3600 - self.play_status[c]=[0,token] - serv.execute_delayed(random.randrange(config.ttrig),self.start_enigme,(serv,c,token)) + #for c in self.play_channels: + # token=time.time()-3600 + # self.play_status[c]=[0,token] + # serv.execute_delayed(random.randrange(config.ttrig),self.start_enigme,(serv,c,token)) def start_enigme(self,serv,channel,token=None): # On reste silencieux si lechan n'est pas actif