Venbot is a Discord bot used on the Vencord Discord server.
This bot is very specialised for the Vencord server and its community, so it might not be very useful for other servers.
Nevertheless it is still available under a free software license so you can easily audit and modify it!
Prequisites: git, nodejs, pnpm
- Clone the repository
- Copy
assets/examples/config.example.tomltoconfig.tomland fill in all values. Many modules can be disabled via theirenabledconfig value. If you disable a module, you don't need to fill in any other config values for it.
- Run
pnpm installto install dependencies - Run
pnpm startto start the bot
- Copy
assets/examples/venbot.serviceto your systemd service directory. Tweak theWorkingDirectoryvalue to wherever you cloned the repo. - Enable & Start the
venbotsystemd service viasystemctl [--user] enable --now venbot
- Build the image:
podman build -t localhost/venbot . - Copy
assets/examples/venbot.containerto~/.config/containers/systemd/venbot.container. Tweak the volume paths if your checkout or badge directory are elsewhere. - Make sure
data/,config.tomland the badge directory exist on the host. - Enable & Start the quadlet via
systemctl --user daemon-reload && systemctl --user enable --now venbot
The image contains the bot and its assets. data/ and config.toml are mounted from the host, as is /var/www/badges.vencord.dev
(used by the badge command). The HTTP server port is published on localhost according to httpServer.port in config.toml
(8152 by default), so the reverse proxy can reach it without exposing it publicly.
The quadlet runs scripts/container-update.sh before every start. It pulls the latest commit and rebuilds the image when
the checkout changed (or when the image does not exist yet). This means the existing v.update flow keeps working: the bot
exits, systemd restarts it, the image is rebuilt, and the new container starts. v.restart also picks up any pushed changes.
If the pull fails (for example due to a network issue), the current checkout and image are used instead. If there are no new
commits, the bot still restarts but the image is not rebuilt.
The script assumes the repository is at ~/venbot; adjust it if your checkout lives elsewhere.
The bot includes a HTTP server that is used for some modules (namely GitHub linking and the Vencord reporter). If you want to enable it, you also have to set up a reverse proxy to forward traffic to the bot.
I suggest Caddy. You can find an example Caddyfile in assets/examples/Caddyfile. The Caddyfile and config.toml file
should have matching domains and port.