twitools/filters/markov.py.dist
2017-03-09 00:48:09 +01:00

24 lines
600 B
Text

"""
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
"""
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