Twitch stream to Discord notifier via webhook running on Cloudflare workers. Runs every 5 minutes on a cron timer.
- Add your Twitch streamers to a whitelist in index.ts here
- Register a new application on the Twitch developers dashboard https://dev.twitch.tv/console/apps
- Add your discord webhook URL, TWITCH_CLIENT_ID and TWITCH_CLIENT_SECRET to wrangler.toml here
It's better to add TWITCH_CLIENT_SECRET as a secret in with
wrangler secret put
and put it into a.dev.vars
file if you plan on forking this repo and making changes. - Publish with
wrangler publish
.