mirror of
https://github.com/thewesker/ebooks_example.git
synced 2025-12-20 12:21:16 -05:00
correct var name and logs scheduled tweet
This commit is contained in:
4
bots.rb
4
bots.rb
@@ -100,7 +100,8 @@ class BoodooBot
|
|||||||
tweet(model.make_statement)
|
tweet(model.make_statement)
|
||||||
else
|
else
|
||||||
# schedule tweet to happen at a random minute this hour
|
# 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
|
scheduler.in.this_many_min do
|
||||||
tweet(model.make_statement)
|
tweet(model.make_statement)
|
||||||
end
|
end
|
||||||
@@ -249,6 +250,7 @@ class BoodooBot
|
|||||||
log "Loading model #{model_path}"
|
log "Loading model #{model_path}"
|
||||||
@model = Ebooks::Model.load(model_path)
|
@model = Ebooks::Model.load(model_path)
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
BoodooBot.new(SETTINGS['BOT_NAME']) do |bot|
|
BoodooBot.new(SETTINGS['BOT_NAME']) do |bot|
|
||||||
|
|||||||
Reference in New Issue
Block a user