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