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
|
2017-03-08 23:48:09 +00:00
|
|
|
:return: String to be tweeted, False if the text should not be tweeted
|
2017-03-08 01:43:00 +00:00
|
|
|
"""
|
|
|
|
|
2017-03-08 23:48:09 +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
|