Пример #1
0
    def stop(self):
        """
        Stop the bot

        Calling this method before the bot has started will result in an
        Exception being raised.
        """
        if self.bot_thread is None:
            raise Exception("Bot has not yet been started")
        push_message(QUIT_MESSAGE)
        self.bot_thread.join()
        reset_app()  # empty the bottle ... hips!
        logging.info("Main bot thread quits")
        zap_queues()
        self.bot_thread = None
Пример #2
0
Файл: test.py Проект: qznc/err
    def stop(self):
        """
        Stop the bot

        Calling this method before the bot has started will result in an
        Exception being raised.
        """
        if self.bot_thread is None:
            raise Exception("Bot has not yet been started")
        push_message(QUIT_MESSAGE)
        self.bot_thread.join()
        reset_app()  # empty the bottle ... hips!
        logging.info("Main bot thread quits")
        zap_queues()
        reset_rooms()
        self.bot_thread = None
Пример #3
0
 def tearDownClass(cls):
     pushMessage(QUIT_MESSAGE)
     cls.bot_thread.join()
     reset_app()  # empty the bottle ... hips!
     logging.info("Main bot thread quits")
Пример #4
0
 def tearDownClass(cls):
     pushMessage(QUIT_MESSAGE)
     cls.bot_thread.join()
     reset_app()  # empty the bottle ... hips!
     logging.info("Main bot thread quits")
Пример #5
0
 def tearDown(self):
     pushMessage(QUIT_MESSAGE)
     self.bot_thread.join()
     reset_app()  # empty the bottle ... hips!
     logging.info("Main bot thread quits")
     zapQueues()
Пример #6
0
Файл: test.py Проект: foxxyz/err
 def tearDown(self):
     pushMessage(QUIT_MESSAGE)
     self.bot_thread.join()
     reset_app()  # empty the bottle ... hips!
     logging.info("Main bot thread quits")
     zapQueues()