24 lines
600 B
Text
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
|