Beispiel #1
0
 def restart(self, mess, args):
     """ restart the bot """
     self.send(mess.getFrom(), "Deactivating all the plugins...")
     deactivate_all_plugins()
     self.send(mess.getFrom(), "Restarting")
     global_restart()
     return "I'm restarting..."
Beispiel #2
0
 def restart(self, mess, args):
     """ restart the bot """
     self.send(mess.getFrom(), "Deactivating all the plugins...")
     deactivate_all_plugins()
     self.send(mess.getFrom(), "Restarting")
     global_restart()
     return "I'm restarting..."
Beispiel #3
0
 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
Beispiel #4
0
 def disconnect_callback(self):
     self.remove_commands_from(self)
     logging.info('Disconnect callback, deactivating all the plugins.')
     deactivate_all_plugins()
Beispiel #5
0
 def disconnect_callback(self):
     self.remove_commands_from(self)
     logging.info("Disconnect callback, deactivating all the plugins.")
     deactivate_all_plugins()
Beispiel #6
0
 def shutdown(self):
     logging.info('Shutting down... deactivating all the plugins.')
     deactivate_all_plugins()
     self.internal_shelf.close()
     logging.info('Bye.')