예제 #1
0
파일: bot2.py 프로젝트: idler/botalo
 def __init__(self, username, password, res=None, debug=False):        
   self.start_time = time.localtime()      
   self.msg = EventThread(self)
   self.msg.start()
   JabberBot.__init__(self, username, password, res, debug)
예제 #2
0
파일: dpkbot.py 프로젝트: brr/dpkbot
 def __init__(self, jid, passwd, res = None):
     """Initializes the jabber bot and sets up commands."""
     #super(jid, password, res=res)
     JabberBot.__init__(self,jid,passwd,res= res)
     self.comid={'ping':{},'version':{}}