Guest User

Untitled

a guest
Nov 19th, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. require 'twitter'
  2.  
  3. Twitter.configure do |config|
  4. config.consumer_key = 'xxx'
  5. config.consumer_secret = 'xxx'
  6. config.oauth_token = 'xxx'
  7. config.oauth_token_secret = 'xxx'
  8. end
  9.  
  10. threads = []
  11.  
  12. 100.times do
  13. threads << Thread.new do
  14. Twitter.update "#twitterbottest #{rand(9999999)}"
  15. puts 'tweeted'
  16. end
  17. end
  18.  
  19. threads.each {|t| t.join }
Add Comment
Please, Sign In to add comment