← All assets

Discord Platform

Relic

Internally, los-bot

A Discord agent with a memory, a voice and an entire simulated economy underneath it.

Live in production
52
Commands

435 subcommands beneath them

103
Data models

Mongoose schemas

8
Bot identities

from a single codebase

71,737
Lines of code

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.

01

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.

02

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.

03

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.

04

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.

05

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.

06

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.

07

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.

Want something like this?

We build the same way for other people.