Managing servers and networks
How networks are created, how servers join and move between them, and how to keep each one working.
Networks, servers and the main server
- A network is a group of Discord servers the bot treats as one community. Case numbers, people's records, auto-mod rules and settings belong to the network, and actions are mirrored between its servers.
- One install of the bot can run several networks, each kept apart from the others: nobody in one network sees another's records, settings or servers. A server is in one network at most; it can move to another.
- The install's own network (
instance.network_id,defaultunless you set it) is the one its first network becomes. Every other network gets a random ID, which is also its join code. - The main server is a network's central server, usually the main community Discord. What someone's roles allow there, they may do in every server of the network, and its mod-log shows every action taken anywhere. Choose it in Settings → Main server (details).
A server the bot is in is always in one of three states:
| State | What it means |
|---|---|
| In a network | The bot works there: commands, mirroring, logging and every switched-on feature. |
| In no network (bot added) | The bot is in the server but does nothing there. Nothing is mirrored to or from it, and its commands answer that the server is waiting. |
| Asked to join | In no network yet, and one of the server's admins has asked a network to take it. That network's admins confirm it. |
A server only joins a network its admins chose, and only when that network's admins agree, so someone who gets hold of the invite link can't add their own server and receive your bans.
Network admins
Network admins confirm servers, remove them, and change every setting. They are:
- the network's owner (whoever created it);
- anyone with Discord's Administrator permission in a server already in the network;
- extra admins, added by Discord user ID in Set up (Settings → Admins and setup), for people who run the network without being Discord administrators;
- Authentik sign-ins in one of
REVENGEBOT_OIDC_ADMIN_GROUPS(for the install's own network).
An administrator of a server that isn't in the network is not one of its admins. See Permissions.
Your servers
Your servers, in the panel's menu, lists every server where you're the owner or have Administrator or Manage Server. The list is what Discord said when you signed in with Discord; sign out and in again to update it. (Authentik sign-ins have no Discord server list, so the page is empty for them.)
Someone who hasn't added the bot anywhere yet, and isn't in a network, sees Getting started at the top: add the bot to a server, create a network (or ask to join one), then run /setup. Each step is ticked off as it's done. The public invite link, /invite (on the hosted bot, https://revenge.bot/invite), signs people in and brings them straight here.
At the top, Your networks lists the networks you own or are an extra admin of, with Switch to it for each. A network that's been deleted, or that the bot has left everywhere, says when it will be deleted for good.
Each server shows where it stands, and what you can do:
| Shown as | You can |
|---|---|
| In the network (and current if it's your current server) | Open makes it your current server and goes to the Dashboard. Left to set up lists anything still missing there. Admins: Move to another network. |
| Bot added, in no network | Create a network with it, or Ask to join one with its join code. Admins of the network you're working in: Add to it at once. |
| Asked to join network | That network's admins: Add to it. Anyone else waits. |
| In another network | Switch to that network, if you're its staff. |
| Bot not added | Add bot (below). |
Creating a network
Anyone who manages a server can create a network with it. How many one person may own depends on the install's plan: one on Free, three on Premium.
- Sign in to the panel with Discord. If you aren't staff anywhere yet, you land on Your servers.
- Add bot to your server (below), if it isn't there yet.
- Under the server, open Create a network, or join one, give the network a name, and click Create a network.
- You're its owner and an admin, the server is its main server, and the panel opens Set up to finish: log channels, the mute role, extra admins and branding.
To keep the install from being flooded, one person can create at most 3 networks a day, and one address 10, whatever their plan.
New networks ask their admins for two-factor sign-in, so turn on two-factor authentication for your Discord account first (Discord: User Settings → My Account), then sign out and in again. You can change the rule later in Settings → Two-factor sign-in.
Adding a server
- Sign in to the panel with Discord and open Your servers.
- Click Add bot next to the server. Discord's page for adding the bot opens with that server already chosen and the permissions the bot needs (the list).
- Click Authorize. Discord sends you back to Your servers.
- If you're an admin of the network you're working in, the server joins it at once, becomes your current server, and opens its Left to set up list.
- If you aren't, the server is added in no network: create a network with it, or ask to join one.
- Work through Left to set up (below).
One person can use Add bot 20 times an hour, and one address 60. Add bot needs Discord sign-in to be set up (how). It comes back through the same redirect as sign-in, so there's nothing extra to register in the Developer Portal. You can still add the bot with the invite link in Discord setup; the server then waits in no network.
Joining a network
A network's admins find its join code in Settings → Network, and give it to the admins of the server that should join. They then:
- open Your servers, and under the server, Create a network, or join one;
- enter the code, and click Ask to join.
The request shows on the network's Dashboard under Network status → Asking to join, with who asked. One of its admins clicks Confirm (or Decline). From then on:
- actions are mirrored to and from the server by the sync rules;
- staff roles there count in the panel and in slash commands;
- the bot records the server's members, and every feature switched on starts working there.
Confirming is recorded in the audit log, with who did it. Only share the code with people you'd let ask: anyone with it can ask, but only your admins can let a server in.
Moving a server to another network
Both networks agree to a move: an admin of the network the server is in asks, and the other network's admins confirm.
- On Your servers, under the server, open Move to another network, enter the other network's join code, and click Ask to move.
- The other network's admins see it under Network status → Asking to join ("Asking to move here from another network") and confirm it.
The server leaves its old network when the move is confirmed. Its past cases, notes and logs stay with the old network; the new one starts its own record there. If it was the old network's main server, that network has no main server until its admins choose another.
Running a network
Settings → Network holds the network's own settings:
- Name: shown in the panel and on Your servers.
- Join code: for servers asking to join (above).
- Owner: the owner can hand it over to another admin (they must already be an admin), and stays on as an extra admin. A network from before owners has none; any admin can make an admin its owner.
- Leave the network: an extra admin who isn't the owner stops being one.
- Export the network's data (owner only, or any admin of a network with no owner): Download export gives a .zip of the network's records, one JSON-lines file per kind (cases, people, notes, settings, its servers' settings, staff, the audit log, saved message text and more), with a
README.txt. Pictures and videos aren't included, and secrets (API keys, webhook and REMP secrets) are left out. Each export is in the audit log, and it works while the network is suspended. At most 3 an hour. - Delete the network (owner only, typing its name): its servers leave it at once (the bot stays in them), everyone working in it is signed out, and its API keys stop working. Its cases, people, settings and logs are kept for 30 days, then deleted for good.
If the bot is removed from every server of a network, the network goes dormant. Adding the bot back to one of its servers wakes it. A network dormant for 90 days is deleted for good, except the install's own network, which only goes if its owner deletes it. Your networks shows the date in both cases.
Settings → Integrations holds the network's connection to REMP, the enforcement platform: its mode, address and API key. Each network has its own (details).
Working in several networks
If you're staff in more than one network, you sign in once. The panel opens the network you chose last, and a switcher under the name at the top of the sidebar lists your other networks. Choosing one checks again that you're staff there (and, if that network asks for it, that you signed in with two-factor), then the whole panel follows it: cases, people, settings, branding, features, API keys, webhooks, the audit log, live updates and downloads. Nothing from one network shows while you're working in another.
Links into a network, such as the one under /history in Discord, open the panel in that network. If you're working in a different one, the panel asks first: Switch to it, or Stay here.
After it joins: what's left to set up
The bot checks every server in the network and lists what's wrong under the server, on Your servers (Left to set up) and on the Dashboard (Network status, a red dot). The checks are:
| Problem | Fix |
|---|---|
| The bot isn't in the server any more, or Discord says it's unavailable | Add the bot again, or remove the server |
| Missing permissions (Ban Members, Moderate Members, Manage Roles, View Audit Log, and others for the features switched on, such as Manage Server for Discord's AutoMod) | Give the bot's role them in Server Settings → Roles |
| The bot's role is below the mute role, or the mute role was deleted | Move the bot's role up (why), or choose the mute role again in Settings → Servers |
| No mod-log channel | Create log channels for me (admins): the bot makes a private #mod-log, and a locked #message-log if the message log is on and has none, and chooses them. Or pick an existing channel with /setup modlog or in Settings → Servers, which also has Create #mod-log and Create #message-log. The server menu at the top of the page has them too |
| A channel something is posted to was deleted, or the bot can't post there | Check the channel's permissions, or choose another in Where things are posted |
| The message-log channel isn't locked | Lock again, on Network status or in Settings → Servers (the message log) |
| Cases couldn't be mirrored here in the last 24 hours | Open the case to see why (usually a permission or the bot's role) |
A server with no problems shows a green dot. Refresh on Network status checks again. Other programs get the same answer from GET /api/v1/network/status (API).
Then run the rest of Discord setup in that server: the mute role, and the message-log channel if you use the message log.
The current server
The menu at the top of every page chooses the server you're working in, or Whole network. It's remembered for your sign-in. The current server is:
- the default server for Enforce;
- the server the Message log shows;
- first, and highlighted, in Settings → Servers;
- the only server the Dashboard's charts count.
Everything else still covers the whole network.
Removing a server
On the Dashboard's Network status, network admins get Remove for each server except the main server (choose another main server first). Removing takes the server out of the network; the bot stays in the server, which goes back to waiting, so nothing is mirrored to or from it and the bot stops acting there. Its records are kept. Add it again from Your servers to bring it back, or kick the bot in Discord to leave altogether. Removing is recorded in the audit log.