sync/examples/python-show-bot
2026-05-21 16:06:00 +02:00
..
bot.py Add example python bot for making shows 2026-05-21 16:06:00 +02:00
README.md Add example python bot for making shows 2026-05-21 16:06:00 +02:00
requirements.txt Add example python bot for making shows 2026-05-21 16:06:00 +02:00

Python Show Bot Example

Uses veretube-bot==0.1.4 with AsyncBot and the built-in Shows API helpers.

Setup

cd examples/python-show-bot
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt

Set environment variables:

  • BOT_TOKEN (required)
  • CHANNEL (required)
  • SOCKET_URL (default: http://localhost:1337)
  • API_BASE (default: http://localhost:8080/api/v1)
  • SHOW_TIMEZONE (default: UTC, must be valid IANA timezone)

Run:

python bot.py

Chat Commands

  • !shows - list shows
  • !mkshow - create a demo show
  • !runshow <id> - run a show immediately