Skip to content
v5.5

Discord

Connect your Discord server to your Virtual Airline, choose what the vAMSYS bot posts and where, give pilots roles by rank, and use the bot's commands.

The vAMSYS bot connects your Discord server to your Virtual Airline. It posts your announcements, gives pilots roles for their rank, and names them in the server. Staff set it up on the Discord page in Orwell and in Discord itself.

You need the permission to change Discord settings. Staff who manage alerts or NOTAMs can see how Discord is set up, read-only, and never see the connection code. A Virtual Airline on trial is told Discord connects once the trial ends.

You need the Manage Server permission in Discord. If you aren’t sure, the person who created the server has it.

  1. Open Communications > Discord in Orwell and select Add to Discord. Discord opens in a new tab: pick your server and approve what the bot may do. Don’t untick any permission.
  2. In your Discord server, type /link in any channel the bot can see. It asks for your connection code.
  3. Copy the Connection Code from the page (Copy Code) and paste it in. Leave the Orwell page open: it updates by itself when the server is linked.

The code works like a password: anyone who holds it can connect your Virtual Airline to a server. It stops working once a server is connected, and isn’t shown again until you disconnect. Issue a New Code makes any older code stop working.

Once connected, the page says Connected to your server’s name and asks Discord whether the bot is still in it. Check Again repeats that. If Discord doesn’t answer, the page says Not checked, and your saved choices stay as they are. You can only choose channels and roles after a successful check.

The bot needs Manage Roles, Manage Nicknames, Send Messages, Manage Messages and View Channel. Its role must sit above all your pilot rank roles in Discord’s role list, because it can’t manage roles above its own or the server owner.

If you kick or ban the bot, your Virtual Airline is unlinked. Roles already given stay with members until you remove them in Discord.

DiscordOrwell
1Orwell▾ CommunicationsPilot EmailsDiscord
Discord
2Rank Roles
3

Alerts

Channel
Role to Mention
4Send a Test Post

Schematic of the Discord screen in Orwell. The numbers match the steps.

  1. 1Discord in the Communications menu
  2. 2Rank Roles
  3. 3One row for each kind of post, with its channel and the role to mention
  4. 4Send a Test Post

Each kind of post has a Channel and, for some, a Role to Mention. A row with no channel isn’t posted. Press Save Changes to save.

Row Posted when Role to mention
Alerts An alert starts showing. Yes
NOTAMs A NOTAM starts showing. Yes
Activities An activity starts showing. Yes
Badge Awards A pilot is awarded a badge. Yes
PIREPs Needing Review A flight report is filed that staff need to review. Use a staff-only channel. Yes
Ad-hoc Flight Requests A pilot asks to fly an ad-hoc flight. With no channel, the PIREP review channel is used. Shown when your Virtual Airline uses Request to Book. Yes
Flight Booked A pilot books a flight. No
Departures A pilot takes off. No
Landings A pilot lands. No
Daily Statistics, Full The full daily summary, best in a staff channel. No
Daily Statistics, Simple The short daily summary, better for a public channel. No

Send a Test Post sends one plain message to the channel saved for that row, without mentioning its role, so you can check the bot can post there. It uses the saved channel, not one you picked but haven’t saved.

Giving a channel to Alerts, NOTAMs or Activities marks what is already showing as posted, so connecting a channel doesn’t post the backlog.

If a saved channel or role no longer exists in your server, the row says so. It is kept and shown by its ID until you choose another.

Rank Roles in the page header maps each rank to the Discord roles the bot gives pilots of that rank. Create the roles in Discord first. A role can belong to one Virtual Airline only. Pilots who already hold a rank get a change at their next rank sync.

Give Roles When a Pilot Joins makes the bot name a pilot and give them their rank’s roles when they join your server, if their vAMSYS account is linked to Discord. A pilot who hasn’t linked is told how to. During the beta, pilots link Discord on vamsys.io, not on v5.5.

Pilots who didn’t join through that can request their roles with a button in a channel you choose, see /setup-role-button below.

The bot names pilots with their name and Pilot ID. Set the format with /config in Discord:

Format Example
Name - Pilot ID (default) John Smith - ABC1234
Pilot ID - Name ABC1234 - John Smith
Name Only John Smith
Pilot ID Only ABC1234

Formats with both can use a separator: space, dash (the default), pipe, forward slash, backslash or comma. Nicknames are cut to Discord’s limit of 32 characters, keeping the Pilot ID. A format change affects new role requests, so existing members use the role button again to update.

The nickname format and the bot’s staff notification channel are shared by every Virtual Airline linked to a server. Rank roles and the join setting are set for each Virtual Airline in Orwell.

Commands run in Discord, not Orwell.

Command Who What it does
/link Manage Server Links the server to your Virtual Airline with the connection code.
/unlink Manage Server Unlinks the server’s airlines after a confirmation. Channels, notification roles and rank roles are cleared, and roles already given stay.
/config Manage Server Opens a panel for the nickname format, the separator and the staff notification channel.
/setup-role-button Server owner Posts a button, with a heading, text and label you choose, that members press to get their roles and nickname.
/resync Manage Server Re-syncs every member’s roles and nickname with vAMSYS, with a dry-run option to preview. Roles not in vAMSYS’s expected set are removed. There is a 6-hour wait between runs.
/healthcheck Manage Server Checks the bot’s database, vAMSYS connection, permissions and uptime.
/ping Everyone Checks the bot’s response time.

The staff notification channel set in /config is separate from the posts above. It receives the bot’s own messages: roles given, permission errors and system events.

The bot checks vAMSYS every 30 seconds. When a pilot changes their public name in vAMSYS, their nickname in your server follows. Rank changes reach a pilot’s roles through the rank sync, and /resync forces a full sync.

Disconnect at the bottom of the page stops your Virtual Airline posting to the server, clears your channel choices and rank roles, and issues a new code. You can connect the same server again afterwards.

One server can host several Virtual Airlines. Each runs /link with its own code. A pilot in several of them gets the roles of all of them.

Spot something wrong or missing? Email us at [email protected].