Esempio n. 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..."
Esempio n. 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..."
Esempio n. 3
0
File: errBot.py Progetto: 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
Esempio n. 4
0
 def disconnect_callback(self):
     self.remove_commands_from(self)
     logging.info('Disconnect callback, deactivating all the plugins.')
     deactivate_all_plugins()
Esempio n. 5
0
 def disconnect_callback(self):
     self.remove_commands_from(self)
     logging.info("Disconnect callback, deactivating all the plugins.")
     deactivate_all_plugins()
Esempio n. 6
0
 def shutdown(self):
     logging.info('Shutting down... deactivating all the plugins.')
     deactivate_all_plugins()
     self.internal_shelf.close()
     logging.info('Bye.')