Skip to content
This repository was archived by the owner on Sep 20, 2026. It is now read-only.
BattleVivePublic archive

Repository files navigation

Battlevive Discord Bot

Discord bot that syncs player, lobby, season rating, and leaderboard data from Battlevive/Supabase and manages Battlevive roles, ranks, and match info in Discord.

Tests Stable Release CodeQL Advanced

Project shutdown: Battlevive has been shut down. This repository is retained for archival purposes.

Documentation

Full documentation is published at battlevive-bot.voxix.workers.dev/docs:

Requirements

  • Docker or Podman with Compose support
  • A Discord bot token
  • Battlevive/Supabase API credentials

Setup

cd utils
cp .env.example .env
# fill required values in .env
./init.sh

Running the published image

From the repository root after utils/init.sh completes:

docker compose pull
docker compose up -d

or:

podman compose pull
podman compose up -d

Check 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.

Local source build

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 --build

Do 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:local

License

This project is licensed under the AGPL-3.0. See LICENSE.

Third-party assets

Releases

Packages

Used by

Contributors

Languages