A bot that queries Twitch and posts to a Slack WebHook when a channel has started broadcasting.
Name | Description | Example |
---|---|---|
CHANNELS_TO_CHECK | Comma delimited list of twitch channels to check to see if they are broadcasting | halo,thekidtsunami |
SLACK_WEBHOOK_URL | The full url of the slack webhook to post status updates to | https://hooks.slack.com/webhookpath |
TWITCH_BASE_URL | The base url of the twitch API, should be their kraken one... | https://api.twitch.tv/kraken/ |
TWITCH_CLIENT_ID | Client ID for registered Twitch Application | (Register at https://www.twitch.tv/settings/connections) |
REDIS_URL | The url for Redis | (Blank in a local environment...) |
This was originally developed on Mac OS X (10.11.3) using VS Code. VS Code is a free IDE from Microsoft that is... pretty cool.
They have a wonderful page for NodeJS Applications with VS Code.
Using redis to store the state so the bot only posts about changes in the state of channels.