This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Log an error if the required environment variables are not set.

  • Loading branch information...
1 parent 9b108b4 commit 3397df36fc557a6a0cb28b88c3c9bcd54ca5103e @mmb mmb committed Oct 2, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/scripts/turntable.coffee
@@ -38,3 +38,5 @@ module.exports = (robot) ->
robot.messageRoom env.TT_CHAN, "#{data.name}@turntable.fm: #{data.text}"
ttbot.on 'speak', speak_callback
+ else
+ console.log 'Set the TT_AUTH, TT_USERID, TT_ROOMID and TT_CHAN environment variables to enable the turntable.fm script'

0 comments on commit 3397df3

Please sign in to comment.