Skip to content

Instantly share code, notes, and snippets.

@codeincontext
Created June 27, 2012 16:18
Show Gist options
  • Select an option

  • Save codeincontext/3005161 to your computer and use it in GitHub Desktop.

Select an option

Save codeincontext/3005161 to your computer and use it in GitHub Desktop.
require 'twitter'
Twitter.configure do |config|
config.consumer_key = 'xxx'
config.consumer_secret = 'xxx'
config.oauth_token = 'xxx'
config.oauth_token_secret = 'xxx'
end
threads = []
100.times do
threads << Thread.new do
Twitter.update "#twitterbottest #{rand(9999999)}"
puts 'tweeted'
end
end
threads.each {|t| t.join }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment