diff --git a/server.js b/server.js index 4c9b428..cd42bf2 100644 --- a/server.js +++ b/server.js @@ -156,12 +156,14 @@ function updateGithubFeed() { function logSlackError(text) { - if(typeof process.env.SLACK_WEBHOOK_URL != 'undefined') { + if(typeof slack != 'undefined') { slack.webhook({ channel: 'dottech-errors', username: 'lbrytech-bot', text: text + }, function(err, response) { + }); }