Overview
This page is generated from the project corpus and rewritten on every docs build. Edit the source in corpus/, not here.
just-a-bot is a personal Discord bot (@bots/discord) with games,
gambling, AI chat, image generation, reminders and an RPG world. It also plays
music in voice: the Jukebox, a speaker that atrium steers (see
jukebox.md). A D&D layer
and an Instagram /post command were hidden for months and deleted on
2026-10-06 — see decisions.md.
It was a multi-bot monorepo — Slack, WhatsApp and a dice-table voice Activity
lived here until 2026-08-27, when they were removed to make this a Discord-only
repo (decisions.md). shared/ stays a separate workspace because
it holds code with no Discord dependency, and the boundary enforces that.
- Language/runtime: TypeScript on Node ≥ 22.12, run directly via
tsx(no build step for the bots). ESM ("type": "module"),.tsimport suffixes. - Structure: npm workspaces —
shared/(the@bots/sharedpackage),bots/discord, anddocs-site/(the build-time documentation site, not a runtime). See architecture.md. - Process management: a container in production (since 2026-09-06), pm2
via
ecosystem.config.cjslocally.
The Discord bot is organized as one feature directory per capability under
bots/discord/src/ (e.g. rpg/, mafia/, trivia/, ask/), with a thin
slash-command handler per feature in commands/.
Only the Jukebox has its own page (jukebox.md); the 2026-10-02
fixes across features are in audit-fixes.md. Most features
are not catalogued here; pages get added as work touches them. In the meantime their operating manuals live in
docs/ — one directory per feature. docs/ is the
how, this wiki is the why, and docs/ ranks last when they disagree.