示例#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':{}}