Created
September 5, 2008 20:13
-
-
Save BrianTheCoder/9013 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| For more on randexp read http://github.com/benburkert/randexp/tree/master/README.textile ....or else |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'rubygems' | |
| require 'twitter' | |
| require 'randexp' | |
| USERNAME= "" | |
| PASSWORD = "" | |
| acct = Twitter::Base.new(USERNAME, PASSWORD) | |
| p 'starting' | |
| loop do | |
| begin | |
| p acct.post(/[:sentence:]/.gen[0...140]) | |
| rescue | |
| p "EPIC FAIL" | |
| end | |
| sleep 300 | |
| end | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'rubygems' | |
| require 'daemons' | |
| Daemons.run('rand_exp_tweet.rb') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment