twitools/filters/markov.py.dist

25 lines
600 B
Text
Raw Normal View History

2017-03-08 01:43:00 +00:00
"""
This file allows you to add your own hooks to the markov.py script without
having to mess around with the code.
"""
def textFilter(text):
"""
Code to be executed when a new tweet has been generated.
:param text: Text of the new tweet as String
:return: String to be tweeted, False if the text should not be tweeted
2017-03-08 01:43:00 +00:00
"""
return text
def tweetFilter(tweet, originalText)
"""
Code to be executed when a new tweet has been posted.
:param tweet: tweepy.Status object of the new tweet
:param originalText: Original text of the tweet before passing through textFilter()
"""
return