Skip to content

boonebgorges/horse_thatbooks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

== horse_thatbooks ==

This is the source code for @horse_thatbooks. Created at THATCamp CHNM 2012.

In a nutshell, it does the following:

  • Pulls the latest tweets with the #thatcamp hashtag
  • Stores them in its tweet cache (tweets.txt, which holds up to 500 tweets)
  • Runs them through a Markov chain process to create some new text
  • Adds the #thatcamp hashtag, and sends the tweet

Thanks to the following libraries:

== How to use ==

  1. Download this repo. Note that the external libraries listed above are linked as submodules. If you're running a git clone, you can fetch them with

     git submodule init
     git submodule update
    

    If you've downloaded the zip file from Github, you'll have to get the libraries yourself (from the links above) and place the files in their respective directories (lib/php-twitteroauth and lib/MarkovBigram)

  2. Create a file called tweets.txt

  3. Copy config.sample.php to config.php

  4. Get creds from Twitter

  5. Put those creds in config.php

  6. Set a cronjob to call php /path/to/twitter.php

  7. ???

  8. Profit

About

Source code for @horse_thatbooks

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages