From c35104050c717aac3ec94f7a1684624d76089b2b Mon Sep 17 00:00:00 2001 From: Brett O'Connor Date: Fri, 14 Aug 2015 04:33:37 -0600 Subject: [PATCH] correct var name and logs scheduled tweet --- bots.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bots.rb b/bots.rb index de14fef..f2f811d 100644 --- a/bots.rb +++ b/bots.rb @@ -100,7 +100,8 @@ class BoodooBot tweet(model.make_statement) else # schedule tweet to happen at a random minute this hour - in_this_many_min = rand(1..59).to_s + 'm' + this_many_min = rand(1..59).to_s + 'm' + log "Scheduling tweet in #{in_this_many_min} min!" scheduler.in.this_many_min do tweet(model.make_statement) end @@ -249,6 +250,7 @@ class BoodooBot log "Loading model #{model_path}" @model = Ebooks::Model.load(model_path) end + end BoodooBot.new(SETTINGS['BOT_NAME']) do |bot|