Skip to content

Latest commit

 

History

History
22 lines (16 loc) · 794 Bytes

README.md

File metadata and controls

22 lines (16 loc) · 794 Bytes

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