Docs

Web panel

Web panel

The web panel is a website where staff sign in to look people up, read and filter cases, take actions, and change settings. It's served by the bot itself at /panel, alongside the REST API, so there's nothing extra to host.

Page Needs What
Dashboard View records Look someone up and Take action (opens Enforce) at the top, figures for the last 30 days, Latest cases (with each person's main alias and Discord ID), Network status and charts, each with a Refresh button (details)
People View records Search by any name someone has used, or by Discord ID, with profile pictures and account status; put commas between terms to find several people at once. Also finds members with no record, in servers whose member list is on. Tick people in the results to initiate a sanction for all of them or link them in one go (up to 50). Everyone gets the same action unless you click ๐Ÿ”— next to someone to give them their own. It's called Lookup in the sidebar, and each person shows how many cases they have and when the last one was
A person's record View records Their profile picture, account status, account age, linked accounts, every server they've been in (first seen, rejoined, left), their aliases, staff notes (they can be pinned, so they're listed first and shown on the Summary, and edited in place), the Initiate sanction form (only the actions your roles allow), and the timeline. Customise arranges the Summary's cards for you (how)
Active sanctions View records Every ban, mute and timeout in force (one tab each), with who, why, since and until, and an Unban (or Unmute, Untimeout) button for people allowed to. Search by name, alias, Discord ID, case number or reason, and filter by server or moderator.
Members Member lists Optional, per server: everyone in the server, with or without cases, with account status. Filter by current members or people who left, and search by any name they have used (nicknames, display names, aliases) or Discord ID. Newest arrivals first. The top shows the member count and how many joined and left this week; click a Discord ID to copy it
Message log Message logs Edited and deleted messages, with each edit highlighted (removed words struck through, added words green), their earlier versions and saved pictures and videos. Each one links to Discord and to its surrounding messages (the saved messages just before and after it in the same channel). Filter by server, edited or deleted, and person (which includes their linked accounts). Only servers where your roles allow message logs. Tick messages to Add to timeline, or Keep their posts (details).
Auto-mod View records (changes: Manage auto-mod) The rules, with on and test-mode switches; a box to try a message against them; the safety brake and honeypot settings; each server's honeypot channel; and recent hits. Hits are listed only for servers you can see.
Cases View records All cases, filtered by action, status and date range, with paging; each case has its own page with its mirroring results, where staff with Edit cases can change the reason (optionally sending the person the new reason by DM) or remove a note. The reason can also be changed from each case on a person's timeline (Edit reason). A case's page also lists the person's latest other cases (Same person), and clicking an empty part of a row on Cases, Active sanctions or Members opens it (clicking text still selects it)
Audit Admins Everything staff have done, newest first, filterable by staff member, kind and date range, plus every staff member's number and when they last signed in (details)
Your servers Discord sign-ins who manage a server Every server you manage, with Add bot, Create a network, Ask to join and Switch to another network; and the networks you own or are an admin of (details)
Help Anyone signed in These documentation pages
Your settings Anyone signed in Your display name, time zone and clock, whether auto-mod strikes show on timelines; and what your roles let you do, server by server. Click your name at the top right.
Settings Admins Role permissions, the main server, features (switch parts of the bot on and off), where things are posted (the mod-log, a channel of their own, or not at all, for each kind of post), sync rules, blocked reaction emojis, server aliases, mirroring opt-outs, member lists, message-log channels, the mute role and the channels it can still see, importing Discord bans made before the bot (how), API keys, branding (the panel's name and icon, and the style and theme staff start with), the network's plan and how much of each quota it uses, Admins and setup, the network's name, join code and owner (Settings โ†’ Network: details), and Integrations, its REMP connection (details)
Set up Admins First-run setup: checks the bot, then the main server, its log channels and admins, with a link to Branding
Operator The bot's operators, with two-factor Every network on the install: suspend and lift them, change their plans, and the operator log

Start typing on any page, with no box selected, and a search box opens over the page with what you typed in it (/ or Ctrl+K, โŒ˜K on a Mac, open it empty, and so does clicking the search box in the top bar). As you type it finds:

  • Accounts, by any name they've used or their Discord ID (an @mention copied from Discord works too), with their account status.
  • Cases, by number (12 or #12), person, reason or moderator.
  • Pages and settings, by name or what they're for: logo finds Branding, unban finds Sanctions.
  • Help pages and their sections.

โ†‘ and โ†“ choose, Enter opens, Ctrl+Enter opens in a new tab, and Esc closes. Search everyone at the bottom opens Lookup with every matching account. Only what your roles let you open is offered.

Enforce

Take action on the Dashboard (and Enforce in the sidebar) opens the Enforce page: type who (one or more Discord IDs, @mentions or names), choose the action, reason, length and server, and click the button. A person's page has the same form, under Initiate sanction. See Initiating a sanction.

Network status

One row per server in the network, green or red with each problem and how to fix it, and servers waiting to be confirmed, with Confirm and Remove for admins. See Dashboard and graphs and Managing servers and networks.

Charts

Below Recent cases and Network status: the network's charts (set by admins in Settings โ†’ Dashboard) and your own (Add a chart). Point at a chart to read it, or use Show as a table. See Dashboard and graphs.

Your servers

Discord sign-ins see Your servers in the menu: every server where you're the owner or have Administrator or Manage Server, with whether it's in the network, in another one, in none, or doesn't have the bot. Add bot adds the bot to one; Create a network starts a network with it, and Ask to join asks a network to take it, by its join code. See Managing servers and networks.

A suspended network

When the bot's operators suspend a network, a notice at the top of every page says when and why. You can still read everything, sign out, switch network, manage your own sessions and export the network's data, but every change is refused, and the bot doesn't act in the network's servers until the suspension is lifted.

Switching networks

Staff in more than one network sign in once. The sidebar shows a switcher under the network's name, and the panel opens the network you chose last. Everything follows the network you're working in. See Working in several networks.

Current server

The menu at the top of every page chooses the server you're working in, or Whole network. It's the default for Enforce, the Message log and the charts. See The current server.

Account status

Everyone's status is shown as โœ“ All good if they have no ban, mute or timeout in force, or a chip for each one that is, such as ๐Ÿ”จ Banned until 29 Nov. Warnings and notes don't change the status. If another account linked to the same person has one, the status shows how many, such as โš ๏ธ 2 linked accounts banned (or muted, timed out), instead of All good: a sign of possible ban evasion. It's on People search results, the Members list and each person's page.

The timeline

A person's timeline has every case and every server arrival and departure, newest first, along one line. The date is in bold on the left, once per day, with each entry's time under it. Each dot takes its action's colour from the theme; arrivals and departures have dashed dots.

The timeline is a table (time, event, state, account, detail) split by day, with a details panel beside it (under it on narrow screens). Click a row, or press Enter on it, to show that entry there: its reason, account, server and who did it, with Open case, Edit reason, and Lift for a sanction still in force. A case's state (Active, Expired or Lifted) is shown on its row.

A strip above the list shows the same history across time, with one lane per linked account: a shaded bar for each stay in a server, and a marker for each case, arrival, departure, auto-mod strike and added message (ban โ—† red, mute, timeout or kick โ—† amber, warning โ— amber, note โ— grey, arrivals and departures โ—‹). Point at a marker or bar for what and when; click a marker to show it in the details panel. 24 h, 30 d, 4 mo and All choose how far back it goes (remembered in your browser); the table below only lists what's in that range. The dashed line is now.

Edited and deleted messages only appear on a timeline when staff put them there: click Add messages on the timeline, which opens the Message log for that person (and their linked accounts), tick the messages that matter, and click Add to timeline. You come back to the timeline with them highlighted. Each one shows its text, edits and file chips, and who added it; Remove from timeline takes it off again without touching the message log. An added message is the same for all staff who can see that server. Adding and removing need Message logs, and both go in the audit log.

"First seen" is the earliest the person is known to have been in a server: when the bot saw them join, or the join date Discord reported when the bot first looked, whichever is earlier. It never moves later, even if they leave and rejoin. "Left" is their most recent departure, which includes being kicked or banned.

Profile pictures

The members module saves a copy of the profile picture of everyone the network has a record of (anyone with a case or note), at 128ร—128. A new copy is saved whenever they change it, and the old ones are kept, so their picture still shows after they change it or delete their account. Everyone else's picture is shown straight from Discord.

Member lists

The members module records everyone in every server, because it needs to for first appearances. The Members page only lists a server's members if an admin ticks Member list for that server in Settings. It's off by default, because not every community wants staff browsing everyone.

Some sections update by themselves (live updates): Recent cases and Network status on the dashboard, and the timeline on a person's page, which only reloads for changes about that person or their linked accounts. If you're typing in one of these sections, or have something in it opened, it doesn't reload under you: a New changes: load button appears instead. A tab you aren't looking at catches up when you switch back to it. Each Refresh button still reloads only its own section, using htmx, a small script library. Times are shown in each viewer's own time zone: the one they chose in Your settings, or else their browser's.

Linked accounts (alts)

Staff with the Link accounts permission (by default, Discord's Ban Members) can put accounts they've proven belong to the same person on one record, to track ban evasion. On a person's page, under Linked accounts, enter the other account's Discord ID and the evidence, then click Link account. Either account's page then shows everything together: cases, servers, names, timeline and status. If the other account already had a record, the two are merged.

To link several accounts at once, tick them in the People search results and use Link accounts under the results, with the evidence as the reason. With Link them to left empty, they're linked to each other (onto the first one ticked); with an account entered, they're all linked to that one.

  • Sanctions stay with each account. Banning the main account doesn't ban the alt. Staff can still ban the alt on its own, even while the main account is banned, and unbanning one doesn't unban the other.
  • Ban evasion alerts. When a linked account joins, rejoins or leaves a server while another of the person's accounts is banned, muted or timed out, the mod-log post says so.
  • Automatic ban-evasion bans (feature banevasion, off until switched on in Settings โ†’ Features). When an account joins a server while another account linked to the same person is permanently banned, the bot bans it at once, as a new case with the reason Ban evasion and the banned account's case number. It's mirrored like any other ban. Temporary bans don't trigger it, and a ban from another server only counts if that ban would be mirrored to this one.
  • Every link is posted in the main server's mod-log channel (or every server's, if no main server is chosen), with who linked it and why. It's also kept on the record.
  • Mistakes can be undone. Unlink gives the account its own record back, with the cases taken against it.

Joins and leaves

Every arrival and departure in every server is recorded, so a person's timeline shows each time they left and came back, with how long they stayed and which time joining it was. Things that happened while the bot was offline are noticed when it starts, and marked that way. With the Join and leave log feature on (the default), leaves and rejoins are also posted in the mod-log channel; first appearances already were. Arrivals and departures from before this was added only show the first appearance and the latest departure.

Aliases

The members module records every username, display name and server nickname each account uses, once per distinct name, with when it was first and last seen. A person's page lists them under Aliases; People and Members show a few as "aka โ€ฆ", and People and Members searches also find members by a name they used before. When someone on record starts using a new name, the mod-log channel of the server where it was noticed gets a Name changed post (everyone else's changes are only recorded, to keep busy servers quiet). Names are recorded from when this feature arrived; earlier names aren't known.

Staff with Edit cases can also:

  • Add an alias by hand, under Aliases on the person's page: a name the bot hasn't seen, such as an old name or one used elsewhere. It shows as Added by staff (with who added it), People search finds them by it when they're on record, and it can be removed again. Names the bot saw can't be removed.
  • Choose the main alias: the arrow (โ–พ) next to the name at the top of the page lists every alias. The one chosen becomes the name the page is headed with, for all the person's linked accounts. Their current name goes back to the name they use now.

Both are recorded in the audit log (category Linked accounts and aliases).

Main server

In Settings โ†’ Main server, choose the network's main server, usually the main community Discord. What someone's roles allow there, they may do in every server of the network, both with slash commands and on the panel. Admins there are admins everywhere. The panel's action form starts on the main server, and API actions without a guild_id happen there. Its mod-log also shows every action taken anywhere in the network, naming the server, while the other servers' mod-logs show only their own (details). Discord still hides a slash command from people without the matching Discord permission in that server; allow it in Server Settings โ†’ Integrations if needed.

Features

Settings โ†’ Features switches parts of the bot on and off for the whole network, at once and without a redeploy. See configuration.md for the list.

Settings โ†’ Reasons keeps the reasons your team uses often, one per line (up to 25). They're shown under every reason box (Enforce, a person's page and the People page), and a click fills the box in; it can still be changed. Changes are recorded in the Audit log.

Message log

With the messagelog module installed, choose each server's message-log channel in Settings โ†’ Servers (or with /setup messagelog); the bot locks it so only it posts there. Edited and deleted messages are posted there, with deleted messages' files, which are kept there rather than on the bot. The Message log page lists them too, with a chip (๐Ÿ–ผ Image, ๐ŸŽž Video, ๐Ÿ“Ž File) for each file that opens its post in Discord. There you can Add to timeline and Keep messages. It needs the Message logs permission (by default, Discord's Manage Messages). See The message log.

Mute role

In Settings โ†’ Servers, choose each server's mute role (an existing role, or Create a new "Muted" role), and the channels muted members can still see, such as the rules or #why-am-i-muted. Saving updates every channel at once: the mute role is hidden from all of them except the exceptions, where it may see and read. Whether muted members can also post in an exception follows that channel's own permissions. Saving only adds what an exception needs (View Channel and Read Message History): anything else you've given the mute role there, such as Send Messages in #why-am-i-muted, is kept. New channels are hidden from it automatically.

The bot keeps the mute role working when channel permissions change. It puts the mute role's permissions back on a channel that loses them, most often a channel synced to its category, as soon as it happens. It also checks every channel each time someone is muted and when the bot starts, to catch anything missed while it was offline. It never changes the exceptions by itself, since you may have set them up differently on purpose. If an exception loses the mute role's permissions, Network status warns you, and saving the mute role again puts them back. To let muted members into a channel, make it an exception: removing the mute role's permissions by hand doesn't last.

Tickets (and any other channel) someone was added to by name stay visible to them while muted, without being exceptions: Discord puts a person's own channel permissions above their roles'. They can post in a ticket if the ticket gives them Send Messages themselves, as ticket bots usually do.

Auto-mod

With the automod module installed, the Auto-mod page manages the network's rules (see configuration.md for how they work). Add starter rules adds a sensible set (invites, mass mentions, floods, repeated messages, emoji spam, scam phrases) in test mode, so you can watch what they would catch before switching test mode off.

Who can change what:

  • Rules and settings for the whole network: admins, and anyone with Manage auto-mod in the main server.
  • A server's changes to a rule (switching it off there, exempt channels and roles, its own steps) and that server's honeypot: anyone with Manage auto-mod in that server. By default that's Discord's Manage Server.

Hits that became a case show on the person's timeline as that case. Other hits (deletions alone) only show there for staff who turned on Show auto-mod strikes on timelines in Your settings; they're always on the Auto-mod page.

Mass-action warning

Many bans and kicks in a short time usually mean a staff account was taken over or a script went wrong. When a network gives more than its limit in one minute (20 by default), the bot warns its admins: a post in the mod-log channels that get cases, a notice at the top of every panel page for an hour, and an entry in the audit log, with who gave the most. It only warns: the bans and kicks still go through. Imported bans and auto-mod don't count. Change the limit in Settings โ†’ Network โ†’ Mass-action warning (1 to 1,000 a minute).

Audit log

The Audit page (admins) lists everything staff do, wherever they do it:

  • Moderation: every ban, mute, warning, note and so on, and changes to cases (new reasons, removed and pinned notes), whether from a slash command, the panel, the API or Discord's own menus. What the bot does by itself (auto-mod, expiries, imported bans) isn't staff action, so it's left out.
  • Linked accounts: links and unlinks.
  • Auto-mod: rule changes, settings, honeypots and resuming after the safety brake.
  • Settings: features, the main server, sync rules, blocked emojis, server settings, role permissions, log channels, ban imports and API keys, from the panel or slash commands such as /setup.
  • Panel sign-ins: each sign-in (with the role it gave) and sign-out, signing out everywhere, and admins signing someone out.

Choose a staff member under Staff (or click their name on any entry) to see only what they did, with when they last signed in and their latest action. Their card also lists where they're signed in to the panel, with Sign out everywhere to end all of it. They can sign in again while their roles allow it, so to keep someone out, also take away their roles in Discord (or groups in Authentik). Without a filter, the page ends with every staff member, their role and when they last signed in. Entries are kept for good; nothing in the panel changes or deletes them. The log starts when this feature was installed.

Staff numbers

Everyone who signs in to the panel or takes a staff action gets a staff number, such as S-3, given in order and never reused. A staff member's record (their page under People) shows ๐Ÿ›ก๏ธ Staff S-3, their role, when they last signed in to the panel and their last staff action, with a link to their audit log for admins. Your own number is under Your settings.

Help

Help, in the menu, shows these documentation pages inside the panel, for everyone signed in.

Your settings

Everyone signed in can set, for themselves:

  • Display name: shown in the panel and on cases they create there. Empty means their Discord or Authentik name.
  • Time zone: every time in the panel, and the dates in the Cases filter, use it. Empty means the browser's.
  • Clock: 24-hour or 12-hour.
  • Show auto-mod strikes on timelines: off by default. When it's on, rule hits, honeypot catches and Discord AutoMod blocks appear on every timeline you open. Strikes that led to a sanction always show, as that case.
  • Style, theme and density: Meridian 2.0, Bulwark or Original; Auto (follows the system), Warm day, Deep sea, Aero or Crimson; comfortable or compact. Install default follows Settings โ†’ Branding; Bulwark, Original, Aero and Crimson need the Premium plan. The theme swatches in the sidebar and the density buttons in the top bar change them too, without leaving the page.

Changes apply straight away, on every device they're signed in on.

Your sessions, on the same page, lists everywhere you're signed in: the browser, how you signed in, when it started, when it was last used and when it ends. Sign out ends one; Sign out everywhere ends all of them, this one included. Sign out of any you don't recognise, then change your Discord (or Authentik) password.

/history in Discord shows the 10 newest cases and always links to the person's full record in the panel.

Who can sign in

Access comes from places staff already manage, so there's no separate user list:

  • Discord sign-ins get the same permissions as in slash commands, server by server, from Discord's own permissions or from role permissions (Settings โ†’ Permissions). Anyone with Administrator in any server of the network is an admin.
  • Authentik sign-ins get theirs from their groups: REVENGEBOT_OIDC_ADMIN_GROUPS for admins, REVENGEBOT_OIDC_MODERATOR_GROUPS for every permission except admin.
  • Extra admins, added by Discord user ID in Set up (Settings โ†’ Admins and setup), are admins in the panel even without Administrator in Discord. Slash commands still follow their Discord permissions.

Permissions lists every permission and what grants it. Someone with no permissions at all can't sign in, unless they manage a Discord server: then they only get Your servers, to add the bot there.

The panel only offers what you're allowed: for example, the action menu lists only your actions, and pages you can't use are left out of the menu. An action allowed in one server only must be carried out in that server.

Discord roles are checked again every 10 minutes, so removing someone's role in Discord also removes their panel access. A Discord sign-in lasts 12 hours. An Authentik sign-in lasts 1 hour, then renews through Authentik without a click while you're still signed in there; that's when your groups are read again, so removing someone from a group takes effect within the hour.

Actions taken in the panel appear on cases with the moderator's account (for example discord:123โ€ฆ) and source web, and go through the same path as slash commands: they're mirrored, logged, and sent to webhooks.

Reporting a network

Anyone can report a network that misuses the bot to the people who run it: Report a network that misuses this bot on the sign-in page. Reporters sign in with Discord first, which opens only the report page, and can send 3 reports a day. See Operators.

Setting it up

The panel lives on the bot's domain; see api.md for giving the bot one.

1. Discord sign-in

  1. In the Discord Developer Portal, open your application, then OAuth2.
  2. Under Redirects, add https://<your bot domain>/panel/auth/discord/callback and save.
  3. Copy the Client ID. Click Reset Secret and copy the Client Secret.

Sign-in asks Discord for your profile and your list of servers (the identify and guilds scopes), for Your servers. Add bot comes back through the same redirect, so there's nothing else to register.

2. Authentik sign-in (optional)

  1. In Authentik, create an OAuth2/OpenID Provider:
    • Client type: Confidential.
    • Redirect URI: https://<your bot domain>/panel/auth/oidc/callback.
    • Scopes: keep the default openid, profile and email mappings. The profile mapping includes groups.
  2. Create an Application that uses this provider. Note its slug.
  3. Copy the Client ID and Client Secret. The issuer is https://<authentik>/application/o/<slug>/.
  4. Create groups for panel staff, for example Panel Admins and Panel Moderators, and add people to them.

3. Settings

Set these (in Coolify: the app's Environment Variables). Store the secrets as secrets.

Variable Example
REVENGEBOT_MODULES Add panel to the list, for example moderation,modlog,mirror,reactionblock,members,messagelog,automod,api,panel
REVENGEBOT_PANEL_URL https://bot.example.com, with no trailing slash
REVENGEBOT_DISCORD_CLIENT_ID From step 1
REVENGEBOT_DISCORD_CLIENT_SECRET From step 1 (secret)
REVENGEBOT_OIDC_ISSUER Optional, from step 2
REVENGEBOT_OIDC_CLIENT_ID Optional
REVENGEBOT_OIDC_CLIENT_SECRET Optional (secret)
REVENGEBOT_OIDC_LABEL The button text; defaults to Authentik
REVENGEBOT_OIDC_ADMIN_GROUPS Comma-separated, e.g. Panel Admins
REVENGEBOT_OIDC_MODERATOR_GROUPS Comma-separated, e.g. Panel Moderators
REVENGEBOT_INSTANCE_SECRET_KEY Optional (secret): 32 random bytes, base64. Encrypts the API keys networks save in Settings โ†’ Integrations; without it they can't be saved. Make one with openssl rand -base64 32

Redeploy, then open https://<your bot domain>/panel.

If Discord sign-in is set up, the bot must also be connected to Discord, because it checks staff roles through the bot. If Authentik can't be reached when the bot starts, its button is left out and Discord sign-in keeps working; the log says why.

Security

  • Sessions: a random token in a cookie that scripts can't read and other sites can't send. Only a hash of the token is stored. Over https the cookies' names start with __Host-, so another subdomain of your domain can't set or replace them, and the panel tells browsers to only ever use https for its address (HSTS, for a year).
  • Two-factor sign-in: Settings โ†’ Two-factor sign-in can require two-factor authentication on the Discord account of admins or of all staff. Without it, sign-in is refused with a message saying how to turn it on, and people already signed in are signed out at their next role check (within 10 minutes). The setting won't save if it would sign you out yourself. People who only use Your servers aren't asked; Authentik sign-ins follow Authentik's own rules.
  • Your sessions: see Your settings. Admins can sign a staff member out everywhere from the Audit log.
  • Managing a server (Your servers) is checked against the list Discord gave at sign-in and, where the bot is in that server, against the person's current roles there, so losing Manage Server counts at once.
  • Sign-in limits: each address may start or finish 60 sign-ins in 10 minutes, and everyone together may start 3,000. An IPv6 address counts as its /64 block, here and in the action limits below. Over the limit, the sign-in page asks to wait a few minutes. Behind a proxy such as Cloudflare, set panel.client_ip_header (configuration) so the panel can tell visitors apart; without it only the overall limit applies, and the log says so once.
  • Sign-in messages: a failed sign-in comes back to the sign-in page with a short code, and the panel shows its own message for it. A link can't put other text on the sign-in page.
  • Action limits: creating networks, Add bot and reports are limited per person and per address (Creating a network), and a form can send at most 1 MB.
  • Forms: every change (form or Refresh button) must carry a per-session token, so other websites can't make a moderator's browser take actions.
  • Sign-in: checked with a one-time state tied to the browser, plus PKCE. Authentik's identity token is also verified: its signature, audience, expiry and nonce.
  • Redirects: after signing in, the panel only sends people back to pages inside the panel.
  • Browser protection: the pages forbid being embedded in other sites, and only load scripts from the panel and one pinned copy of htmx.

Look and branding

The panel shows the Revenge Bot name and icon (or the theme's, see Look and branding). Admins can give it its own name and icon, and choose the style and theme staff start with, in Settings โ†’ Branding (details). Staff can pick their own style and theme in Your settings or the sidebar.

Are you sure?