Skip to content
This repository has been archived by the owner on Jun 8, 2023. It is now read-only.

Commit

Permalink
Prefix NS_API_* env variables with "HUBOT_"
Browse files Browse the repository at this point in the history
  • Loading branch information
marceldegraaf committed Oct 26, 2011
1 parent 9d1022c commit a737d77
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/scripts/train.coffee
@@ -1,6 +1,6 @@
# A way to interact with the NS (Dutch Railways) API
#
# To configure, add NS_API_EMAIL and NS_API_PASSWORD to your Heroku config with "heroku config:add"
# To configure, add HUBOT_NS_API_EMAIL and HUBOT_NS_API_PASSWORD to your Heroku config with "heroku config:add"
#
# train disruptions <station> - Retrieve the list of disruptions near <station>.
# Please note: <station> can be a station code (e.g. 'asd')
Expand Down Expand Up @@ -41,8 +41,8 @@ module.exports = (robot) ->

findDisruptions = (msg, station, callback) ->
url = disruptionApiUrl
username = process.env.NS_API_EMAIL
password = process.env.NS_API_PASSWORD
username = process.env.HUBOT_NS_API_EMAIL
password = process.env.HUBOT_NS_API_PASSWORD
auth = "Basic " + new Buffer(username + ':' + password).toString('base64')

parser = new xml2js.Parser({explicitArray: true})
Expand Down

0 comments on commit a737d77

Please sign in to comment.