This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 'use strict'; | |
| const { IncomingWebhook } = require('@slack/client'); | |
| const https = require('https'); | |
| const moment = require('moment'); | |
| async function sendSlackNotification(message) { | |
| const url = process.env.SLACK_INCOMING_WEBHOOK_URL; | |
| const slackIncomingWebhook = new IncomingWebhook(url); | |
| return await slackIncomingWebhook.send({ |
OlderNewer