Discord Platform
Relic
Internally, los-bot
A Discord agent with a memory, a voice and an entire simulated economy underneath it.
- 52
- Commands
- 103
- Data models
- 8
- Bot identities
- 71,737
- Lines of code
435 subcommands beneath them
Mongoose schemas
from a single codebase
across 868 JavaScript files
What it is
Inside Relic
Relic is the agent people actually talk to. It runs eight separate Discord bot identities from one codebase, and underneath the conversation sits a deep per-server simulation: currency with cross-server exchange rates and tax brackets, companies with staff and docks and trading ships, mines, housing with furniture and tenancy, provinces, a sports league with fixtures and cup brackets, and a finance committee that takes proposals and votes on them.
On top of that sits the personality layer. Each guild gets its own identity, temperature, slang and behaviour, with persistent memory and an emotional model, plus a freewill mode where Relic speaks without being spoken to. It joins voice chat, segments on a second of silence, transcribes with a warm Whisper process, answers, and replies in a cloned voice trained on a sample you upload. The wake word is its own name.
It has been in production long enough to have scars, and they are written into the code. The process manager’s shutdown timeout is raised to fifteen seconds because player-state saves do not finish in the default 1.6. Memory allocation is pinned because Skia’s off-heap use across worker threads pushed resident memory to nine gigabytes against a 93 MB JavaScript heap. The restart backoff exists because a crash loop once produced 377 restarts.
Built with
- Node.js
- discord.js 14
- MongoDB + Mongoose
- @discordjs/voice
- Skia canvas
- Ollama
- faster-whisper
- Piper TTS
- Stockfish 16
- pm2
Capabilities
What it actually does.
52 commands, 435 subcommands
A documented, auto-generated surface organised into categories with a browsable in-Discord help menu. The reference is generated from the code, so it cannot drift.
Eight bot identities, one codebase
Each with its own token, owner and per-guild configuration. Relic is the first of them, and the one that relays community events back to the website.
A full simulation economy
Work shifts, cross-server currency exchange, tax brackets, treasury and payroll, companies with officers and shops and trading ships, international trade, mines, housing with rent and tenancy offers, provinces, and a finance committee with proposals and votes.
Rendered identity documents
ID cards, passports with stamps, user banners and league cup brackets drawn server-side with Skia, set in OCR-B — the actual machine-readable-zone typeface.
Voice conversation with a cloned voice
Joins the channel, segments on 1000 ms of silence and drops anything under 350 ms as a cough, transcribes, answers, and speaks back in a per-guild cloned voice.
Per-guild personas with memory and freewill
A five-level context builder — persona, user data, rules, domain, documents — over persistent memory and emotion models, with a mode where the bot starts conversations on its own.
Game-server integration
Minecraft over RCON with a bridge lock, block and gate logging, and account link codes. Arma 3 with server config, mod lists, player lists and performance reporting.
Related
Where it sits.
Shares a name and nothing else. Separate codebases, no shared code between them.
AI Relic
Private infrastructure · active development
A self-hosted AI stack — an 80-billion-parameter coding model on our own GPU, and the coding environment built around it. Nothing leaves the machine.
Read more →The Discord half of the same community. They exchange events every fifteen minutes.
Ruins Empire
Live · ruinsempire.com
A community that runs like an organisation and broadcasts like a network: ranks, vetting, shifts and casework on one side, a 24/7 radio station and scheduled TV on the other.
Read more →