Twitch's eventsub with websocket. Implemented in POSIX sockets. Sends a Discord notification when the stream starts. Supports multiple streamers.
Only dependency is openssl.
-
Export enviromental variables:
TWITCH_OAUTH
DISCORD_TOKEN
CLIENT_ID
-
Edit the streamers list in
main.c
, providing respectively:- the discord channel id for where the message will be sent (right click on channel, Copy ID)
- streamer's broadcaster id (how to get it)
- streamer's username
-
Run
make