Download the configuration files:
mkdir twitchbot && cd twitchbot && curl -fsSLO \
"https://github.com/Helltar/twitchviewer-bot/raw/master/{compose.yaml,.env.example}" && \
mv .env.example .envEdit .env and fill in your values:
CREATOR_ID: your Telegram user IDBOT_TOKENandBOT_USERNAME: Telegram bot token and usernameTWITCH_CLIENT_IDandTWITCH_CLIENT_SECRET: Twitch app credentials (Twitch Developer Console)POSTGRESQL_*+DATABASE_*: PostgreSQL connection settings
Start the bot:
docker compose up -dNote:
compose.yamlincludes a PostgreSQL container, so no external database is required. To use your own PostgreSQL instance instead, remove thepostgresservice fromcompose.yamland point thePOSTGRESQL_*/DATABASE_*values in.envto it.
To run your own build instead of the published image, clone the repository, create .env the
same way, and add compose.local.yaml on top — it builds the image from the checkout on every
start:
git clone https://github.com/Helltar/twitchviewer-bot.git && cd twitchviewer-bot
cp .env.example .env
docker compose -f compose.yaml -f compose.local.yaml up -d/clip - record clips
/clip- from all tracked channels/clip <channel>- from a specific channel (even if it isn't in your list)/clip <prefix>.- only from tracked channels whose name starts with<prefix>, e.g./clip em./clip !<prefix>.- from all tracked channels except those starting with<prefix>, e.g./clip !em.
/screenshot - capture screenshots
/screenshot- from all tracked channels/screenshot <channel>- from a specific channel
Other
/add- Add channel to favorites/list- Show your favorite channels/cancel- Cancel your active background tasks
- The bot requires
ffmpegandstreamlink(already included in the provided Docker image).