lets require that too
This commit is contained in:
parent
002ae49089
commit
cfbbba8e31
1 changed files with 5 additions and 1 deletions
4
bot.js
4
bot.js
|
@ -7,6 +7,10 @@ var CHANNEL = process.env.CHANNEL;
|
||||||
if (!SLACK_TOKEN) {
|
if (!SLACK_TOKEN) {
|
||||||
throw new Error('SLACK_TOKEN env var required');
|
throw new Error('SLACK_TOKEN env var required');
|
||||||
}
|
}
|
||||||
|
if (!CHANNEL) {
|
||||||
|
throw new Error('CHANNEL env var required');
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
var bot = new SlackBot({
|
var bot = new SlackBot({
|
||||||
token: SLACK_TOKEN,
|
token: SLACK_TOKEN,
|
||||||
|
|
Loading…
Reference in a new issue