repository
0.0.0-20240908043009-ed2e3412168f
Repository: https://github.com/jawee/twitch-recorder.git
Documentation: pkg.go.dev
# Packages
No description provided by the author
# README
twitch-recorder
Work in progress. Barely configurable at all, and not very smart.
Usage
Make a copy of config-example.json, named config.json and fill it with client-id, client-secret and streamers.
If you want to get a discord notification on start recording, add webhook-id and webhook-token
{
"client-id": "asdfkölk93242340fdsf",
"client-secret": "jkklajhdfhj88912313",
"streamers": "streamer1, streamer2",
"webhook-id": "asdfasdfaf",
"webhook-token": "kjasdkjlfkasdjfkaljkf"
}
Docker
Place config.json in your ./config directory.
CLI
$ docker create -v /path/to/config/directory:/config \
-v /path/to/in-progress/directory:/inprogress \
-v /path/to/finished/videos/directory:/videos \
-v /path/to/logs:/logs \
--restart unless-stopped \
--name twitch-recorder ghcr.io/jawee/twitch-recorder:latest
Docker-compose
---
version: "2.1"
services:
twitch-recorder:
image: ghcr.io/jawee/twitch-recorder:latest
container_name: twitch-recorder
volumes:
- ./config:/config
- ./inprogress:/inprogress
- ./videos:/videos
- ./logs:/logs
restart: unless-stopped
Development
Docker run
$ git clone [email protected]:jawee/twitch-recorder.git
$ cd twitch-recorder
$ docker build -t twitch-recorder .
$ docker run -it --rm -v /path/to/config/directory:/config \
-v /path/to/in-progress/directory:/inprogress \
-v /path/to/finished/videos/directory:/videos \
--name twitch-recorder twitch-recorder
Go run
go run cmd/main.go