Twitch stream to Discord notifier via webhook running on Cloudflare workers. Runs every 5 minutes on a cron timer.
![image](https://private-user-images.githubusercontent.com/15372551/251152044-5d84f9b8-1a5b-4f47-8557-52ac347bcd7b.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTk5MTgzMzQsIm5iZiI6MTcxOTkxODAzNCwicGF0aCI6Ii8xNTM3MjU1MS8yNTExNTIwNDQtNWQ4NGY5YjgtMWE1Yi00ZjQ3LTg1NTctNTJhYzM0N2JjZDdiLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MDIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzAyVDExMDAzNFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWI3ZjgyZTQxNTI0YjdjYzExYmJjMDdhMjk4YjY1ODUxYmNmZjhiOGE0YTAxNDk3MTBiYTllMDhiNjllODg2NDkmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.0-4oF1fHV-G8A0WVGedFe24duvyx3ARyyPxjT8ApS9c)
- 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
.