x8BitRain / cf-discord-stream-notifier

Twitch stream to Discord notifier via webhook running on Cloudflare workers.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

cf-discord-stream-notifier

Twitch stream to Discord notifier via webhook running on Cloudflare workers. Runs every 5 minutes on a cron timer.

image

How to use:

  1. Add your Twitch streamers to a whitelist in index.ts here
  2. Register a new application on the Twitch developers dashboard https://dev.twitch.tv/console/apps
  3. 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.
  4. Publish with wrangler publish.

About

Twitch stream to Discord notifier via webhook running on Cloudflare workers.


Languages

Language:TypeScript 100.0%