def on_tweet(self, tweet):
        """
        Callback to receive tweet from :class:`~responsebot.responsebot_stream.ResponseBotStream`. Tries to forward the
        received tweet to registered handlers.

        :param tweet: An object containing a tweet's text and metadata
        :type tweet: :class:`~responsebot.models.Tweet`
        """
        logging.info(u'Received tweet: `{message}`'.format(message=tweet.text))

        for handler in self.handlers:
            if not handler.catch_self_tweets and self.is_self_tweet(tweet):
                continue

            if not handler.filter.match_tweet(tweet=tweet, user_stream=self.client.config.get('user_stream')):
                continue

            handler.on_tweet(tweet)
def on_tweet ( self , tweet ) : logging . info ( u'Received tweet: `{message}`' . format ( message = tweet . text ) ) for handler in self . handlers : if not handler . catch_self_tweets and self . is_self_tweet ( tweet ) : continue if not handler . filter . match_tweet ( tweet = tweet , user_stream = self . client . config . get ( 'user_stream' ) ) : continue handler . on_tweet ( tweet )
Callback to receive tweet from :class:`~responsebot.responsebot_stream.ResponseBotStream`. Tries to forward the
        received tweet to registered handlers.

        :param tweet: An object containing a tweet's text and metadata
        :type tweet: :class:`~responsebot.models.Tweet`