042ee931bfc15e719ea000dc02063e2ae8dab482
kaczynski-bot-2.0
A Discord bot built with Bun.
Setup
Install dependencies:
bun install
Create a .env.development file with:
DISCORD_TOKEN=your-bot-token
Development
bun run dev
Commands
Commands live in src/cmd/registry/ and are loaded automatically at startup — drop a file default-exporting a Command in that folder to register it, no manual wiring required.
Data persistence
Bot state (e.g. limbo mode) is persisted to data/data.json via DataService. That path is gitignored.
Production build
bun run build
Bundles src/index.ts and every file in src/cmd/registry/ into dist/. Run the result with:
bun dist/index.js
Docker
Build the image:
docker build -t kaczynski-bot .
Run it, mounting a volume so data/data.json survives container restarts:
docker run -d \
-e DISCORD_TOKEN=your-bot-token \
-v kaczynski-bot-data:/app/data \
kaczynski-bot