correct var name and logs scheduled tweet

This commit is contained in:
Brett O'Connor
2015-08-14 04:33:37 -06:00
parent 80818f430e
commit c35104050c

View File

@@ -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|