def start(self):
        """
        Try to init the main sub-components (:func:`~responsebot.utils.handler_utils.discover_handler_classes`, \
        :func:`~responsebot.utils.auth_utils.auth`, :class:`~responsebot.responsebot_stream.ResponseBotStream`, etc.)
        """
        logging.info('ResponseBot started')

        handler_classes = handler_utils.discover_handler_classes(self.config.get('handlers_package'))
        if len(handler_classes) == 0:
            logging.warning('No handler found. Did you forget to extend BaseTweethandler? Check --handlers-module')

        while True:
            try:
                client = auth_utils.auth(self.config)

                listener = ResponseBotListener(client=client, handler_classes=handler_classes)

                stream = ResponseBotStream(client=client, listener=listener)
                stream.start()
            except (APIQuotaError, AuthenticationError, TweepError) as e:
                self.handle_error(e)
            else:
                break
def start ( self ) : logging . info ( 'ResponseBot started' ) handler_classes = handler_utils . discover_handler_classes ( self . config . get ( 'handlers_package' ) ) if len ( handler_classes ) == 0 : logging . warning ( 'No handler found. Did you forget to extend BaseTweethandler? Check --handlers-module' ) while True : try : client = auth_utils . auth ( self . config ) listener = ResponseBotListener ( client = client , handler_classes = handler_classes ) stream = ResponseBotStream ( client = client , listener = listener ) stream . start ( ) except ( APIQuotaError , AuthenticationError , TweepError ) as e : self . handle_error ( e ) else : break
Try to init the main sub-components (:func:`~responsebot.utils.handler_utils.discover_handler_classes`, \
        :func:`~responsebot.utils.auth_utils.auth`, :class:`~responsebot.responsebot_stream.ResponseBotStream`, etc.)