# V2 Discord Bot Template

This open-source template shows how community servers can call the V2 public API
without bypassing account visibility, rate limits, or auth scopes.

## Commands

- `/v2-rank @user`: reads rank, league, Crown points, faction, and favorite
  fighter through `GET /api/v2/player/{playerId}/stats`.
- `/v2-friend-list @user`: renders opt-in public friend state with
  `v2:developer:read`.
- `/v2-tournament-bracket tournament-v2-id`: creates or displays a TO-managed
  bracket with `v2:tournament:write`.

## Safety Defaults

- Store bearer tokens in the deployment secret manager.
- Respect `account_public_flag_required`.
- Show request IDs in moderator logs.
- Back off on rate-limit headers.
- Do not cache private data.
