]> gitweb.pimeys.fr Git - bots/salesman.git/commitdiff
Pas d'auto-spawn
authorVincent Le Gallic <legallic@crans.org>
Sun, 12 Feb 2017 03:37:50 +0000 (04:37 +0100)
committerVincent Le Gallic <legallic@crans.org>
Sun, 12 Feb 2017 03:37:50 +0000 (04:37 +0100)
salesman.py

index fa5e81e896bf7fa98b2dc8fb3dccac9f1415df9c..d7e00442ceed6264bdab22bb2018d00d34a80eb2 100755 (executable)
@@ -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