Created
August 24, 2023 14:28
-
-
Save jcbombardelli/c27ec70774881d3810fce952a9f19263 to your computer and use it in GitHub Desktop.
Slack Send Message
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
const { WebClient } = require('@slack/web-api'); | |
const SLACK_BOT_TOKEN = '' | |
const SLACK_CHANNEL_ID = '' | |
const main = async () => { | |
const client = new WebClient(SLACK_BOT_TOKEN); | |
await client.chat.postMessage({ | |
channel: SLACK_CHANNEL_ID, | |
text: 'Bot ! 🤖' | |
}); | |
} | |
main(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment