Skip to content

Admin Panel

arielaram edited this page Nov 16, 2026 · 1 revision

Admin Panel

The admin panel is a web app built into the bot. It lets staff look up players, nations, cards and servers, and make changes that the API supports.

Open it

  • Locally: http://localhost:3000 (or PANEL_PORT).
  • Behind Nginx or Ngrok: your domain or tunnel address. See Nginx Guide and Ngrok Guide.

First sign-in

The first visit asks you to create the owner account: username, display name and a password of at least 4 characters. This works only once, while no panel password exists.

Use a strong password if the panel is reachable from the internet.

Access

The panel uses the same permission system as the Discord commands. Your panel account has capabilities through groups. The owner has every capability.

Panel data comes from the bot's own API. The panel gets its API token itself, so you do not paste tokens into it. It needs /access claim run once in Discord first (see Configuration).

Privacy

  • The panel keeps no player data in the browser. Only theme and animation preferences are saved locally.
  • It sends a strict Content Security Policy and loads nothing from third parties.
  • Browsers that refuse cookies can still sign in: the session then lives only in memory, and you sign in again after a reload.
  • Reloading the page signs you out in that case, by design.

What it can't do

  • It needs JavaScript. Without it you only see a message explaining why.
  • Changes go through the API, so they are recorded in /access audit.

Clone this wiki locally