예제 #1
0
파일: irc.py 프로젝트: bthate67/obot
 def start(self):
     last(self.cfg)
     if self.cfg.channel not in self.channels:
         self.channels.append(self.cfg.channel)
     self.stopped.clear()
     self.connected.clear()
     self.joined.clear()
     self.sock = None
     self.doconnect(self.cfg.server, self.cfg.nick, int(self.cfg.port))
     self.connected.wait()
     Handler.start(self)
     Output.start(self)
     Bus.add(self)
     if not self.keeprunning:
         launch(self.keep)
     self.wait()
예제 #2
0
 def start(self):
     Bus.add(self)
     launch(self.handler)
     return self
예제 #3
0
 def cmd(self, txt):
     Bus.add(self)
     e = self.event(txt)
     Kernel.dispatch(self, e)
     e.wait()