require env var
This commit is contained in:
parent
811f571530
commit
598da3405d
1 changed files with 1 additions and 1 deletions
2
app.js
2
app.js
|
@ -1,7 +1,7 @@
|
|||
var SlackBot = require('slackbots');
|
||||
var request = require('request');
|
||||
|
||||
['SLACK_TOKEN', 'RPCUSER', 'RPCPASSWORD'].forEach(function(envVar) {
|
||||
['SLACK_TOKEN', 'RPCUSER', 'RPCPASSWORD', 'IMGUR_CLIENT_ID'].forEach(function(envVar) {
|
||||
if (!process.env[envVar]) {
|
||||
throw new Error(envVar + ' env var required');
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue