Discord bot that syncs player, lobby, season rating, and leaderboard data from Battlevive/Supabase and manages Battlevive roles, ranks, and match info in Discord.
Project shutdown: Battlevive has been shut down. This repository is retained for archival purposes.
Full documentation is published at battlevive-bot.voxix.workers.dev/docs:
- Docker or Podman with Compose support
- A Discord bot token
- Battlevive/Supabase API credentials
cd utils
cp .env.example .env
# fill required values in .env
./init.shFrom the repository root after utils/init.sh completes:
docker compose pull
docker compose up -dor:
podman compose pull
podman compose up -dCheck logs with docker compose logs -f bot or podman compose logs -f bot.
The default Compose file uses the public
voxix/battlevive-bot image. The
latest and immutable sha-<full-commit-sha> tags support Linux AMD64 and
ARM64.
docker-compose.dev.yml is an override, not a standalone Compose file. It
keeps the database, volumes, networks, health checks, and migration service
from docker-compose.yml, then builds the bot source once as
battlevive-bot:local instead of pulling it from Docker Hub.
After creating utils/.env, run both files together from the repository root
with rootless Podman:
podman compose --env-file utils/.env \
-f docker-compose.yml -f docker-compose.dev.yml up -d --buildDo not run docker-compose.dev.yml by itself. The --env-file option supplies
the database interpolation values; the override passes the same file into the
bot and migration containers. Set BATTLEVIVE_ENV_FILE to use a different
local env-file path. utils/init.sh writes the bootstrap pair to the local
env-file; the running bot owns and rotates its persistent pair at
app/data/bot/battlevive_tokens.json. The local override uses Podman's :U
mount option to give that fixed non-root runtime identity ownership of its data.
For a standalone local image build:
podman build . --file Dockerfile --tag battlevive-bot:localThis project is licensed under the AGPL-3.0. See LICENSE.
- Liberation Mono 2.1.5 is bundled under the SIL Open Font License 1.1. The original license and copyright notice are in
app/assets/fonts/LICENSE.txt. Upstream project and official archive: liberationfonts/liberation-fonts, Liberation Fonts 2.1.5 TTF download. - Battlerite map artwork and derived champion emoji upload helpers are covered by the repository's third-party asset notice.