コード例 #1
0
ファイル: test.py プロジェクト: J4LP/rooster
    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
ファイル: test.py プロジェクト: P-Product/err
 def tearDownClass(cls):
     pushMessage(QUIT_MESSAGE)
     cls.bot_thread.join()
     reset_app()  # empty the bottle ... hips!
     logging.info("Main bot thread quits")
コード例 #4
0
ファイル: test.py プロジェクト: will-kanjoya/err
 def tearDownClass(cls):
     pushMessage(QUIT_MESSAGE)
     cls.bot_thread.join()
     reset_app()  # empty the bottle ... hips!
     logging.info("Main bot thread quits")
コード例 #5
0
ファイル: test.py プロジェクト: tjardick/err
 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()