Slack callback registration

This commit is contained in:
Kristian Polso 2018-06-01 11:00:39 +03:00
parent 6d7b9bb1a4
commit e307d844dd

View file

@ -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) {
});
}