예제 #1
0
파일: commands.py 프로젝트: pacoqueen/bbinn
 def __init__(self, browser):
     """Initialises class and sets up local variables"""
     PlugIn.__init__(self)
     DBG_LINE='commands'
     self._exported_methods=[]
     self._handlers={'':{}}
     self._browser = browser
예제 #2
0
파일: commands.py 프로젝트: pacoqueen/bbinn
 def __init__(self,jid=''):
     """Set up the class"""
     PlugIn.__init__(self)
     DBG_LINE='command'
     self.sessioncount = 0
     self.sessions = {}
     # Disco information for command list pre-formatted as a tuple
     self.discoinfo = {'ids':[{'category':'automation','type':'command','name':self.description}],'features': self.discofeatures}
     self._jid = jid
예제 #3
0
 def __init__(self, id_generator, chat_buffer_size=50):
     PlugIn.__init__(self)
     self.id_generator = id_generator
     self.chat_buffer_size = chat_buffer_size
     self.chats_store = {}
     self.DBG_LINE = 'message_store'