コード例 #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)