Guide collection

Discord

Bots, Activities and server administration for communities that run on Discord

6 guides in this collection

Testing

Snapshot Your Discord Server Into Git

Discord has no undo. An hourly script that writes roles, channels and permissions to sorted YAML in a git repository gives you history, blame and a rebuild plan.

3 min read
Forms

A Bot Must Ignore Its Own Messages

Any rule of the form "when a message appears, post a message" can trigger itself. Skip the bot's own events by default, and make including them a visible choice.

3 min read
Deployment

Keep Slash Commands in Sync by Hash

Nobody should have to remember a register-commands step. Build each server's command list from one function, hash it, and sync when the hash changes.

3 min read
AI

Run an AI Bot in a Public Room

A bot that answers in a public server will be asked to do things it should not. Identity comes from the platform, guests give no orders, and code decides what is public.

4 min read
Data

A Public Server Directory That Fails Closed

A listing is public only while the server has opted in, an operator has approved it, and its data is fresh. Put all three in the query, so a lapse hides the listing.

3 min read