diff --git a/bin/ebooks b/bin/ebooks index 22df53e..9f2fc70 100755 --- a/bin/ebooks +++ b/bin/ebooks @@ -264,6 +264,10 @@ STR model = Ebooks::Model.load(modelpath) statement = model.make_statement bot = Ebooks::Bot.get(botname) + if bot.nil? + log "No such bot configured in bots.rb: #{botname}" + exit 1 + end bot.configure bot.tweet(statement) end