# Discord Bot Platform

**Solution Architecture v1.0 · Microsoft Azure · Integration Platform Architecture · 2026-10 · 19 views · 12 architecture decision records**

The half of a Discord-style chat service that third-party bots talk to: a sharded WebSocket Gateway, HTTP interactions with a three-second acknowledgement, a REST API with per-route rate limits, and server-owned installation. Modelled on the public Discord developer documentation; every number is a stated assumption in `ask.md`.

The design rests on one rule: **bots are untrusted consumers on the far side of a one-way boundary, entitlement is enforced before an event is produced, and every promise states what it loses.**

## What is here

| Path | Contents |
|---|---|
| `diagrams/index.html` | Landing page: 19 views in seven acts, then the one-pager and the decision record |
| `diagrams/*.html`, `svg/`, `drawio/` | One page per view, editable SVG and draw.io source |
| `docs/architecture-one-pager.md` | The one-pager |
| `docs/decision-record.md` | 12 decision records, the technology table and glossary |
| `specs/gen-*.js` | Authoring sources; `views.json`, `manifest.json`, `adr.json` are assembled from them |
| `scripts/build.sh` | Rebuilds everything (Node only) |
| `ask.md` | The requirement |
