04e04eb11d0c9f9a175e1a76eff2c09f37a61c12
- Added 'enabled' property to FunConfigSchema with a default value of true for better configuration management. - Refactored getFunConfig to return a complete default configuration when no data is found. - Improved globals.css by expanding CSS variables for light and dark themes, enhancing styling consistency across the application.
Nexumi
Nexumi is a self-hosted public Discord bot with dashboard architecture, built as a TypeScript monorepo.
Phase 1 scope
- Monorepo foundation with
apps/botandpackages/shared - PostgreSQL + Redis compose stack
- Prisma core schema (
Guild,GuildSettings,User,Case) plus moderation tables (Warning,ModNote) - Command and module framework for slash command routing
- Permission layer and i18n starter (
de+en) - BullMQ integration for persistent moderation jobs (temp-ban expiration)
- Complete moderation reference command set for Phase 1
Quickstart
- Copy
.env.exampleto.envand fill required values. - Install dependencies:
pnpm install
- Generate Prisma client:
pnpm prisma:generate
- Apply database migrations:
pnpm prisma:migrate
- Start stack:
docker compose up -d
- Start bot locally:
pnpm --filter @nexumi/bot dev
Verification commands
pnpm typecheckpnpm lintpnpm test
Database
See docs/DATABASE.md for migrations, backup and restore runbooks.
Backup and restore note
Phase 1 includes the BullMQ foundation for scheduled jobs. Database backup rotation is configured via BACKUP_RETENTION_DAYS and the backups volume is already reserved in compose.
Restore flow (manual, PostgreSQL container):
- Stop bot/web services.
- Copy dump into postgres container.
- Run
psqlrestore againstnexumidatabase:docker compose exec -T postgres psql -U nexumi -d nexumi < /path/to/backup.sql
- Start services again.
Description
Languages
TypeScript
96.4%
PHP
2.8%
CSS
0.5%
Dockerfile
0.2%