Skip to content

Commit

Permalink
Updated README
Browse files Browse the repository at this point in the history
  • Loading branch information
bremensaki committed Feb 13, 2015
1 parent 6a0e69a commit 576ed6f
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions README
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
Making nonsense out of your carefully crafted tweets.
Twitomatic is a twitter bot that uses markov chains to produce tweets based on its followers tweets and the twits that mention it. When a user tweets a mention of the bot it will respond with a "markovation" of the last 800 tweets by that user (that don't contain links or mentions of other users). It will also follow that user. It will occasionally (configurable as a percent chance every time it is run) tweet a markovation of the latest 800 tweets from all of the users it follows.

Python app that controls a twitter bot that uses markov chains to produce interesting tweets based on it's followers tweets and the twitterers that mention it. When a user tweets a mention of the bot it will respond with a "markovation" of the last 800 tweets by that user (that don't contain links or mentions of other users). It will also follow that user. Every two hours it will tweet a markovation of the latest 800 tweets from all of the users it follows.

Live markovator bot is running here: https://twitter.com/markovator
Live markovator bot is running here: https://twitter.com/anotherbloody
More info here: https://www.heychinaski.com/blog/2010/10/18/markovator-python-google-app-engine-markov-chains-twitter/

Easiest way to use the script is to repeatedly call it using something like cron. Make sure to set the screen_name, token and consumer settings in the twitter_settings.py. The screen name should be the username of the twitter account that the bot is hosted on. Consumer should be the key and secret of a twitter app that you have registered and the token should be the key and secret of the twitter account for that app. See https://dev.twitter.com/pages/oauth_single_token for info on getting a single access token and avoiding the oauth flow.
Easiest way to use the script is to repeatedly call it using something like cron. Make sure to set the screen_name, token and consumer settings in the settings.py. The screen name should be the username of the twitter account that the bot is hosted on. Consumer should be the key and secret of a twitter app that you have registered and the token should be the key and secret of the twitter account for that app. See https://dev.twitter.com/pages/oauth_single_token for info on getting a single access token and avoiding the oauth flow.

Example crontab entry:

* * * * * cd /whatevs/markovator && python main.py >> markovator.log 2>&1


* * * * * cd /home/markovator && python twitomatic.py >> markovator.log 2>&1

0 comments on commit 576ed6f

Please sign in to comment.