This is my entry for the Twitch Channel Points Hackathon (and also my first time using Go)
Required environment variables:
TWITCH_CLIENT_IDTWITCH_CLIENT_SECRETTWITCH_BROADCASTER_IDWH_CALLBACK_URLWH_SECRET
You can include these environment variables locally by creating a .env file in the root of the project and placing them there.
If running locally, it's recommended to use a tool like Ngrok to create an https tunnel for the webhook callback URL.
Donwload dependencies
go mod download
Run
go mod run main.go
There is also a simple Dockerfile included if you'd like to use Docker.
The hydrate.ino file contains the code for the ESP32 microcontroller.