A super-simple Discord bot that detects and deletes spam messages (aka other channels' invites).
If the user insists, the bot kicks it.
In the developer portal → Bot, enable the Message Content Intent (privileged). The bot needs the Manage Messages and Kick Members permissions in the server.
Requires Node 22+.
npm install
BOT_TOKEN=... npm run devnpm run build
BOT_TOKEN=... npm startThe image is built by GitHub Actions to ghcr.io/elfgames/elf-discord-bot (amd64 + arm64).
Kubernetes manifests live in deploy/kubernetes/base and are applied by Flux from
elfgames-cluster. The bot reads BOT_TOKEN
from the elf-discord-bot Secret.