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) {
|
||||
|
||||
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) {
|
||||
|
||||
});
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue