<s> from twitterbot import TwitterBot <EOL> from random import choice <EOL> class FartBot ( TwitterBot ) : <EOL> def bot_init ( self ) : <EOL> """<STR_LIT>""" <EOL> self . config [ '<STR_LIT>' ] = '<STR_LIT>' <EOL> self . config [ '<STR_LIT>' ] = '<STR_LIT>' <EOL> self . config [ '<STR_LIT>' ] = '<STR_LIT>' <EOL> self . config [ '<STR_LIT>' ] = '<STR_LIT>' <EOL> self . config [ '<STR_LIT>' ] = ( <NUM_LIT:5> * <NUM_LIT> , <NUM_LIT:10> * <NUM_LIT> ) <EOL> self . config [ '<STR_LIT>' ] = <NUM_LIT:1> <EOL> self . config [ '<STR_LIT>' ] = None <EOL> self . config [ '<STR_LIT>' ] = True <EOL> self . config [ '<STR_LIT>' ] = True <EOL> self . config [ '<STR_LIT>' ] = True <EOL> self . config [ '<STR_LIT>' ] = [ "<STR_LIT>" , "<STR_LIT>" ] <EOL> self . config [ '<STR_LIT>' ] = False <EOL> with open ( '<STR_LIT>' ) as f : <EOL> self . words = [ w . strip ( ) for w in f . readlines ( ) ] <EOL> def on_scheduled_tweet ( self ) : <EOL> """<STR_LIT>""" <EOL> text = '<STR_LIT>' + choice ( self . words ) <EOL> self . post_tweet ( text ) <EOL> def on_mention ( self , tweet , prefix ) : <EOL> """<STR_LIT>""" <EOL> text = '<STR_LIT>' + choice ( self . words ) <EOL> prefixed_text = prefix + '<STR_LIT:U+0020>' + text <EOL> self . post_tweet ( prefix + '<STR_LIT:U+0020>' + text , reply_to = tweet ) <EOL> def on_timeline ( self , tweet , prefix ) : <EOL> """<STR_LIT>""" <EOL> if '<STR_LIT>' in tweet . text . lower ( ) : <EOL> text = '<STR_LIT>' + choice ( self . words ) <EOL> prefixed_text = prefix + '<STR_LIT:U+0020>' + text <EOL> self . post_tweet ( prefix + '<STR_LIT:U+0020>' + text , reply_to = tweet ) <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> bot = FartBot ( ) <EOL> bot . run ( ) </s>
