No description
- Python 98.6%
- Dockerfile 1.4%
| scripts | ||
| src/paneko_bot | ||
| .dockerignore | ||
| .gitignore | ||
| .python-version | ||
| Dockerfile | ||
| main.py | ||
| pyproject.toml | ||
| README.md | ||
| uv.lock | ||
PanekoPingko
FastAPI bot that forwards live stream starting event from Twitch EventSub to Discord and Fluxer webhooks. (So it can post a ping message when a streamer goes live)
Quick Start
# Install dependencies
uv sync
# Configure environment (copy .env.example to .env)
uv run uvicorn main:app --host 0.0.0.0 --port 8000
Environment Variables
The easisest way to set them up is to put them all in a .env.
| Variable | Description | Default |
|---|---|---|
SELF_PUBLIC_URL |
Public URL for callbacks | http://localhost:8000 |
FLUXER_WEBHOOK_URL |
Fluxer webhook URL | Optional |
DISCORD_WEBHOOK_URL |
Discord webhook URL | Optional |
TWITCH_WEBHOOK_SECRET |
EventSub signature secret | Auto-generated |
TWITCH_CLIENT_ID |
Twitch app client ID | Required |
TWITCH_CLIENT_SECRET |
Twitch app client secret | Required |
TWITCH_TARGET_USER_ID |
Channel to monitor | Required |
Docker
docker build -t paneko-bot .
docker run -p 8000:8000 --env-file .env -it --rm paneko-bot
Notification Message
Edit ping_message file to customize notifications. Supports {broadcaster} and {login} placeholders.
Default: {broadcaster} is streaming https://twitch.tv/{login} !