Skip to content

Twitch's eventsub with websocket and Discord notification. Implemented in POSIX sockets.

License

Notifications You must be signed in to change notification settings

mohad12211/twitch-eventsub-websocket-c

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

twitch-eventsub-websocket-c

Twitch's eventsub with websocket. Implemented in POSIX sockets. Sends a Discord notification when the stream starts. Supports multiple streamers.

Only dependency is openssl.

Usage

  1. Export enviromental variables:

    • TWITCH_OAUTH
    • DISCORD_TOKEN
    • CLIENT_ID
  2. 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
  3. Run make

Discord notification example

image

About

Twitch's eventsub with websocket and Discord notification. Implemented in POSIX sockets.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published