Slack callback registration
This commit is contained in:
parent
6d7b9bb1a4
commit
e307d844dd
1 changed files with 3 additions and 1 deletions
|
@ -156,12 +156,14 @@ function updateGithubFeed() {
|
||||||
|
|
||||||
function logSlackError(text) {
|
function logSlackError(text) {
|
||||||
|
|
||||||
if(typeof process.env.SLACK_WEBHOOK_URL != 'undefined') {
|
if(typeof slack != 'undefined') {
|
||||||
|
|
||||||
slack.webhook({
|
slack.webhook({
|
||||||
channel: 'dottech-errors',
|
channel: 'dottech-errors',
|
||||||
username: 'lbrytech-bot',
|
username: 'lbrytech-bot',
|
||||||
text: text
|
text: text
|
||||||
|
}, function(err, response) {
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue