Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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 }
Add Comment
Please, Sign In to add comment