Created
September 16, 2019 18:37
-
-
Save korzio/6f7b993ce0328d3f4e87e0c7b67c4467 to your computer and use it in GitHub Desktop.
This file contains 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
const { IncomingWebhook } = require('@slack/webhook') | |
const url = process.env.SLACK_WEBHOOK_URL | |
const webhook = new IncomingWebhook(url) | |
// Send the notification | |
(async () => { | |
await webhook.send({ | |
text: 'I\'ve got news for you...', | |
}) | |
})() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment