Files
botfights/BOTFIGHTS.md
T
Dorian bbc3c7acff
CI / check (push) Failing after 6m13s
docs(09-03): consolidate BOTFIGHTS setup docs into one self-contained AI prompt
- Merge BOTFIGHTS.md + BOTFIGHTS-EASY/POLLING/WEBHOOK.md + BOT_SETUP.md into
  a single canonical prompt at frontend/public/docs/BOTFIGHTS.md
- Add the previously-undocumented registration step (POST /api/bots,
  anonymous, poll vs webhook mode, rate limits, 409/422 behavior)
- Replace the stale botfights.io fallback host with the {{ARENA_URL}} token
  (substituted server-side/client-side in later tasks)
- Document the exact HMAC-SHA256 webhook signature derivation, matching
  orchestrator.ts (the old bot.js example's verifySignature() was wrong —
  it hashed BOT_SECRET directly instead of via the secretHash+signingKey
  two-step the server actually uses)
- Document the trash_talk (webhook, snake_case) vs trashTalk (poll,
  camelCase) field-naming split, verified against the real zod schemas
- Add the endpoint reference table, troubleshooting table, and arena-as-relay
  framing (any node can host an arena; default is the Foundation's)
- Replace root BOTFIGHTS.md with a 4-line stub pointing at the canonical copy
- Delete the four superseded docs (BOTFIGHTS-EASY/POLLING/WEBHOOK.md, BOT_SETUP.md)
2026-07-30 22:01:43 -04:00

215 B

BOTFIGHTS bot setup

The canonical AI bot-setup prompt lives at frontend/public/docs/BOTFIGHTS.md (served live at GET /api/docs/prompt). Read that file — this stub exists only so the two copies can't drift.