Sha256: 905de3bd6e4ca0531cfc5c886724891dd738fa105cfa5f6a826a9eae51b8251b

Contents?: true

Size: 438 Bytes

Versions: 4

Compression:

Stored size: 438 Bytes

Contents

require_relative 'src/such_test_bot.rb'
require 'twitter'
twitter = Twitter::REST::Client.new do |config|
  config.consumer_key = ENV['TWITTER_CONSUMER_KEY']
  config.consumer_secret = ENV['TWITTER_CONSUMER_SECRET']
  config.access_token = ENV['TWITTER_ACCESS_TOKEN']
  config.access_token_secret = ENV['TWITTER_ACCESS_SECRET']
end

loop do
  begin
    twitter.update SuchTestBot.generate
  ensure
    sleep 10800 + (rand 5400)
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
twitter_bot_generator-0.2.3 such_test_bot/bot.rb
twitter_bot_generator-0.2.2 such_test_bot/bot.rb
twitter_bot_generator-0.2.1 such_test_bot/bot.rb
twitter_bot_generator-0.2.0 such_test_bot/bot.rb