Slack sample
Using the Slack sample bundle
The Slack example bundle in samples/slack-post
demonstrates the ability to
list all channels into the console and sends a message to a channel which you
have to configure to your channel ID.
Prerequisites
You will need a working nodecg-io
installation. If you have non yet take a
look at installation guide. You may need to
install this bundle, so take a look at the
“Try an included sample”-Guide. It
will also tell you how to log in and how to use the GUI.
You also need:
- a Slack Bot token
Note
If you don't have such a token yet, you can create your own app with token on this page.
Configure the Slack sample bundle
-
In NodeCG, create a new slack service instance.
-
Enter your Slack app token:
{ "token": "your-token-goes-here" }
After entering it, click save.
-
Set the sample's (
slack-post
) dependency to be the newly created service instance (of typeslack
). -
Check the NodeCG logs:
You should see an error or a login message.