Skip to content
This repository has been archived by the owner on Dec 21, 2018. It is now read-only.

Commit

Permalink
Move hard-coded values to config
Browse files Browse the repository at this point in the history
  • Loading branch information
willkg committed Sep 12, 2016
1 parent 692d976 commit 388a29d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
4 changes: 3 additions & 1 deletion config-sample.json
@@ -1,7 +1,9 @@
{
"standup": {
"api_key": "acdef12345",
"url": "http://api.website.com"
"url": "http://api.website.com",
"website": "http://stanu.ps",
"help_page": "https://wiki.mozilla.org/Standup"
},
"irc": {
"host": "irc.server.com",
Expand Down
4 changes: 3 additions & 1 deletion config.js
Expand Up @@ -12,7 +12,9 @@ var defaults = {
nick: 'standup'
},
standup: {
port: 80
port: 80,
website: 'NOSITE',
help_page: 'NOHELP'
},
log: {
console: true,
Expand Down
4 changes: 2 additions & 2 deletions standup-irc.js
Expand Up @@ -374,8 +374,8 @@ var commands = {
});

irc_client.say(user, 'For everything else, please log into the ' +
'Standup website at http://standu.ps/ or check ' +
'the wiki page https://wiki.mozilla.org/Standup ' +
'Standup website at ' + config['standup']['website'] + ' ' +
'or check the wiki page at ' + config['standup']['help_page'] + ' ' +
'for instructions.');
}
},
Expand Down

0 comments on commit 388a29d

Please sign in to comment.