예제 #1
0
파일: errBot.py 프로젝트: glenbot/err
 def connect(self):
     if not self.conn:
         self.conn = JabberBot.connect(self)
         self.activate_non_started_plugins()
         logging.info('Notifying connection to all the plugins...')
         self.signal_connect_to_all_plugins()
         logging.info('Plugin activation done.')
     return self.conn
예제 #2
0
파일: errBot.py 프로젝트: pol51/err
 def connect(self):
     if not self.conn:
         self.conn = JabberBot.connect(self)
         if not self.conn:
             logging.warning('Could not connect, deactivating all the plugins')
             deactivate_all_plugins()
             return None
         loading_errors = self.activate_non_started_plugins()
         logging.info(loading_errors)
         logging.info('Notifying connection to all the plugins...')
         self.signal_connect_to_all_plugins()
         logging.info('Plugin activation done.')
     return self.conn
예제 #3
0
파일: errBot.py 프로젝트: glenbot/err
 def __init__(self, username, password, res=None, debug=False,
              privatedomain=False, acceptownmsgs=False, handlers=None):
     JabberBot.__init__(self, username, password, res, debug, privatedomain, acceptownmsgs, handlers)
     # be sure we have a configs entry for the plugin configurations
     if not self.internal_shelf.has_key('configs'):
         self.internal_shelf['configs'] = {}
예제 #4
0
파일: errBot.py 프로젝트: chancejiang/err
 def __init__(self, username, password, res=None, debug=False,
              privatedomain=False, acceptownmsgs=False, handlers=None):
     JabberBot.__init__(self, username, password, res, debug, privatedomain, acceptownmsgs, handlers)