Discord Blue is a basic Discord bot plugin system built with the discord.py library. This guide provides step-by-step instructions for setting it up on Debian-based LXC.
-
Update System Packages:
apt update && apt upgrade apt install git curl libcairo2 curl -LsSf https://astral.sh/uv/install.sh | sh -
Clone the Discord Blue Repository:
cd /opt git clone https://github.com/cbusillo/discord-blue cd discord-blue -
Install Dependencies with uv:
uv venv -
Set up and Start the Systemd Service:
cp discord-blue.service /etc/systemd/system/ system daemon-reload system enable discord-blue system start discord-blue
Note: Make sure to run once to create the config file and input the discord token along with the server and the bot channel. Slash commands sync directly to the first guild the bot joins, so they appear immediately.
uv run discord_blue
A Dockerfile is provided to build a containerized version of the bot. It
uses the ghcr.io/astral-sh/uv:debian base
image so uv is already available for dependency installation.
Build the image:
docker build -t discord-blue .Run the bot:
docker run --rm discord-blue