Created
June 27, 2012 16:18
-
-
Save codeincontext/3005161 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
| 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