diff --git a/putsch.py b/putsch.py index 32cbeb4625a01a11b7aeab364f0bcf6137b8830a..46a974da6a9d01c6722f5b33248b3e4d790bbe65 100644 --- a/putsch.py +++ b/putsch.py @@ -115,10 +115,11 @@ class Boooob(ircbot.SingleServerIRCBot): def on_welcome(self, serv, ev): serv.join("#lg_putsch") - serv.join("#lg_putsch_loups") - serv.join("#lg_putsch_pf") - serv.join("#lg_putsch_morts") - serv.join("#lg_cheat") + serv.join("#tputsch") + serv.join("#lg_putsch_loups") + serv.join("#lg_putsch_pf") + serv.join("#lg_putsch_morts") + serv.join("#lg_cheat") serv.privmsg("NickServ","identify MotDePasse") def on_join(self, serv, ev):#Quand qq entre dans le chann, le bot inclus canal = ev.target() @@ -771,43 +772,24 @@ class Boooob(ircbot.SingleServerIRCBot): +class Bite(ircbot.SingleServerIRCBot) : + def __init__(self): + ircbot.SingleServerIRCBot.__init__(self, [("irc.iiens.net", 6667)], "triggerbot", "ignorez moi :)", 5) + self.ctrig = "#tputsch" + def on_welcome(self, serv, ev): + serv.join(self.ctrig) + while True : + serv.privmsg(self.ctrig, "bite") + sleep(1) - - - - - - - - - - - - - - - +if __name__ == '__main__': + p = Process(target= Boooob().start) + p.start() + p2 = Process(target= Bite().start) + p2.start() - - - - - - - - - - - - - - - -# -if __name__ == "__main__" : - Boooob().start()