markovbot35.py 文件源码

python
阅读 17 收藏 0 点赞 0 评论 0

项目:markovbot 作者: esdalmaijer 项目源码 文件源码
def twitter_autoreply_stop(self):

        """Stops the Thread that replies to all tweets that match the target
        string.

        For an explanation of the target string, see the Twitter dev site:
        https://dev.twitter.com/streaming/overview/request-parameters#track
        """

        # Raise an Exception if the twitter library wasn't imported
        if not IMPTWITTER:
            self._error(u'twitter_autoreply_stop', \
                u"The 'twitter' library could not be imported. Check whether it is installed correctly.")

        # Update the autoreply parameters
        self._autoreply_database = None
        self._targetstring = None
        self._keywords = None
        self._tweetprefix = None
        self._tweetsuffix = None

        # Signal the _autoreply thread to pause
        self._autoreplying = False
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号