Skip to content

Instantly share code, notes, and snippets.

@BrianTheCoder
Created September 5, 2008 20:13
Show Gist options
  • Select an option

  • Save BrianTheCoder/9013 to your computer and use it in GitHub Desktop.

Select an option

Save BrianTheCoder/9013 to your computer and use it in GitHub Desktop.
For more on randexp read http://github.com/benburkert/randexp/tree/master/README.textile ....or else
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
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