Sha256: 322023bf1aac586341f0702fd7cc43adbda66cf99d9829f8ae87048e5216c682
Contents?: true
Size: 446 Bytes
Versions: 6
Compression:
Stored size: 446 Bytes
Contents
require_relative 'src/<%= bot_name %>.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 <%= class_name %>.generate ensure sleep 10800 + (rand 5400) end end
Version data entries
6 entries across 6 versions & 1 rubygems