From 23057ac4b63610e293112aab03cf7ed956c91b60 Mon Sep 17 00:00:00 2001 From: Brett O'Connor Date: Sat, 15 Aug 2015 07:13:55 -0600 Subject: [PATCH] cleanup --- .gitignore | 1 - bots.rb | 4 +--- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index 82cea2a..5ebf0ae 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1 @@ secret.env -supervisor_start.sh diff --git a/bots.rb b/bots.rb index f2f811d..21253a7 100644 --- a/bots.rb +++ b/bots.rb @@ -36,7 +36,6 @@ class BoodooBot @access_token_secret =SETTINGS['ACCESS_TOKEN_SECRET'] @tweet_interval = SETTINGS['TWEET_INTERVAL'] @tweet_on_hour = to_boolean(SETTINGS['TWEET_ON_HOUR']) - @update_follows_interval = SETTINGS['UPDATE_FOLLOWS_INTERVAL'] @refresh_model_interval = SETTINGS['REFRESH_MODEL_INTERVAL'] @@ -101,7 +100,7 @@ class BoodooBot else # schedule tweet to happen at a random minute this hour this_many_min = rand(1..59).to_s + 'm' - log "Scheduling tweet in #{in_this_many_min} min!" + log "Scheduling tweet in #{this_many_min} min!" scheduler.in.this_many_min do tweet(model.make_statement) end @@ -250,7 +249,6 @@ class BoodooBot log "Loading model #{model_path}" @model = Ebooks::Model.load(model_path) end - end BoodooBot.new(SETTINGS['BOT_NAME']) do |bot|