For server owners

SA Manager Discord bot

One bot for every SA Manager server. It posts your DayZ server's kills, joins, chat and alerts to Discord, lets your admins kick, ban and message players from Discord, links players' Discord and DayZ accounts and runs a private ticket system. The bot speaks English.

What the bot does

Live feeds

Kills with weapon and distance, deaths, joins and leaves, kicks, in-game chat, admin actions and alerts, each in a channel you choose.

Live status message

One message the bot keeps editing every minute: online or offline, players, map and address.

Chat bridge

Messages written in your chat channel appear in the game as [Discord] Name: text.

Admin commands

/kick, /ban, /msg and /restart straight from Discord, logged in the audit log.

Player stats

/player profiles and /top leaderboards by playtime, kills or K/D.

Account linking

Players link Discord and DayZ. Optionally they get a role and a whitelist entry automatically.

Tickets

A panel with buttons. Each ticket is a private channel for the player and your support team.

Alerts

Server offline, RCon password rejected, ban appeals, mod updates and more, posted to your alerts channel.

Quick start

About five minutes. You need the Manage Server permission in your Discord.

  1. Invite the botUse the Invite the bot button above or in your server's Integrations tab on SA Manager. Keep all the requested permissions: the bot needs them to create ticket channels and give roles.
  2. Copy your connect codeOn SA Manager open your server → Integrations → Discord bot. Copy the /connect command with the 10-character code.
  3. ConnectIn any channel of your Discord type /connect code:ABCDEF1234. The code works once; a new one is created right after.
  4. Choose channelsIn each channel you want, type /setup feed and pick the feed type. You can also paste channel IDs on the Integrations tab and save.
  5. Check itType /setup show to see which feed goes where, and /status to see your server.
To copy a channel, role or server ID in Discord, turn on Settings → Advanced → Developer Mode, then right-click the channel, role or server and choose Copy ID.

Who can do what

There are three levels:

LevelWhoCan use
EveryoneAny member of your Discord/ping, /status, /players, /player, /top, /link, /whoami, /report, /where, opening a ticket
Server adminMembers with Manage Server, or with one of the admin roles you set on the Integrations tab/kick, /ban, /msg, /restart
Manage ServerOnly members with the Discord Manage Server permission/connect, /setup, /set, /unset, /whitelist, /ticket publish, the Claim and Close ticket buttons

Admin roles are set per game server, so in a Discord with several servers each server can have its own admins. Discord's own Server Settings → Integrations page can hide commands from members, but the bot still checks the rules above.

Feeds

Each feed goes to one channel. Turn one on with /setup feed in that channel, turn it off with /setup remove, or edit the channel IDs on the Integrations tab. An empty channel ID means the feed is off.

Kill feed kills

Player kills with weapon and distance, and other deaths (zombies, animals, falls).

☠️ Alice killed Bob with M4-A1 · 50 m
💀 Bob died (Infected)

Joins and leaves joins

Connects, disconnects and kicks.

🟢 Alice joined
🔴 Alice left
👢 Bob was kicked: AFK

Chat chat

In-game chat. With the chat bridge on, messages from this channel also go into the game.

💬 Alice: anyone at NWAF?

Admin actions admin

Kicks, bans, messages and restarts from Discord, RCon commands and player notes from the web.

🛠️ Discord: Sajid banned Bob for 24 h — cheating

Alerts alerts

Problems that need attention. See Alerts.

Live status status

The bot posts one message and edits it every minute: online/offline, players, map, address. If you delete it, the bot posts a new one.

Chat bridge

Turn it on with /setup feed type:chat chat_bridge:True or with the checkbox on the Integrations tab. Then every message in the chat channel (up to 300 characters) is sent to the game as a global message with your prefix, for example [Discord] Carol: hi there. The bot reacts with 📨 to each message it sent. Messages starting with !sa are commands and are not sent. You can change the prefix on the Integrations tab.

Player names and chat are cleaned before posting, so nobody can ping @everyone or break the formatting from the game.

Commands

Type / in Discord to see them with descriptions. Most answers are visible only to you; /top and ticket actions are posted to the channel.

Setup

CommandWhoWhat it does
/connect codeManage ServerConnects this Discord to the SA Manager server the code belongs to. The code is single-use.
/setup feed type [channel] [chat_bridge]Manage ServerSends one feed to a channel (default: the current one). chat_bridge works only for the chat feed.
/setup remove typeManage ServerTurns one feed off.
/setup showManage ServerLists the servers connected to this Discord and where each feed goes.
/pingEveryoneChecks that the bot is running.

Server information

CommandWhoWhat it does
/status [server]EveryoneServer name, last health check, Query and RCon state and the current problem, if any.
/players [server]EveryonePlayers online with slot number and ping.
/player query [server]EveryoneProfile of a player by name, SteamID64 or GUID: online or last seen, playtime and sessions, kills and deaths, first seen.
/top [metric] [server]EveryoneTop 10 by playtime, kills, or K/D (players with at least 5 kills). Posted to the channel.

Admin actions

The player option takes a name, #slot, SteamID64 or GUID. Part of a name works when only one online player matches. Every action is posted to the admin feed and saved in the server's Audit tab as discord.kick, discord.ban and so on, with the Discord user's name.

CommandWhoWhat it does
/kick player [reason]Server adminKicks an online player. The reason is shown to the player (default: Kicked by admin).
/ban player reason [hours]Server adminAdds an online player to the SA Manager ban list and kicks them. Without hours the ban is permanent. Banned players can appeal if you turned on the public appeal form.
/msg text [player]Server adminSends an in-game message to everyone, or only to one player.
/restart minutes [reason]Server adminSchedules a restart in 0–60 minutes with countdown warnings in the game.

Players

CommandWhoWhat it does
/linkEveryoneGives the player a code to type in the game chat. See Account linking.
/whoamiEveryoneShows which DayZ account (name and SteamID64) is linked to your Discord.

Reports and whitelist

CommandWhoWhat it does
/report server [message]EveryonePosts an automatic server report (state and checks) to the server's report channel, with your text above it.
/set channel [server]Manage ServerMakes the current channel the report channel of one server, or the default report channel of this Discord.
/unset channel [server]Manage ServerRemoves that report channel.
/where [server]EveryoneShows where reports are posted.
/set whitelist listManage ServerConnects a named whitelist you created on the web (for example RNG1) to this Discord.
/whitelist add list steamid [name]Manage ServerAdds a SteamID64 to that whitelist right away. The reply says if whitelist enforcement is off on the web.
/whitelist remove list steamidManage ServerRemoves a player from the whitelist.
/whitelist listsManage ServerLists the whitelists connected to this Discord.

Text commands

For older setups the bot also understands a few text commands. Slash commands are recommended.

!sa help
!sa ping
!sa status [server]
!sa where [server]
!sa set channel [server]
!sa whitelist lists
!sa whitelist add <list> <SteamID64> [name]
!sa whitelist remove <list> <SteamID64>

Account linking

Linking connects a player's Discord account with their SteamID64, so /whoami works and you can reward linked players.

  1. The player types /link in your DiscordThe bot answers privately with a code such as SA-4F9C21. It is valid for 15 minutes.
  2. The player joins your DayZ server and types it in the chat!link SA-4F9C21. The code is never posted to your Discord chat feed.
  3. DoneThe bot confirms in a direct message. If you set them on the Integrations tab, the player also gets the linked role and is added to the server's whitelist.
Linking needs the SAIdentityBridge server mod, because the game chat with the player's SteamID64 comes from the mod. For the linked role, the bot's own role must be higher than that role in Server Settings → Roles.

Ticket system

Players click a button and get a private channel with your support team. Set it up on the Discord tickets page.

  1. Add your Discord serverEnter the Discord Guild ID and a name, the channel for the ticket panel and your support role. Optionally a Discord category for new ticket channels and a log channel.
  2. Add categoriesEach category is one button on the panel, for example Technical support, Report a player, Purchases. Up to 25 buttons are shown.
  3. Publish the panelIn Discord type /ticket publish. The bot posts the panel to the configured channel. Run it again after you change the categories.

What happens when a player opens a ticket

  • The bot creates a channel like ticket-technical-support-alice that only the player, your support role and the bot can see.
  • It posts your welcome message ({user} becomes a mention of the player) and pings the support role.
  • Each player can have one open ticket at a time; a second click links to the open one.
  • Staff use the Claim ticket button to take it and Close ticket to finish it. Closing deletes the channel after 5 seconds. Both buttons need Manage Server.
  • Opening and closing are posted to the log channel. Open tickets are listed on the Discord tickets page with a link to each channel.

Alerts

Alerts go to the alerts feed. The same alert for the same server is posted at most once every 30 minutes. Low FPS and bridge alerts also post a short ✅ message when the problem is gone.

AlertWhen
Server is offlineThe server has not answered the status query for about a minute.
Server FPS is lowAverage server FPS over 5 minutes is below the limit set on the Integrations tab (default 15, 0 = off).
SA Manager bridge is silentThe server is online but the bridge mod sent nothing for 3 minutes: live players, chat and instant actions stop.
SA Manager bridge reports errorsThe bridge mod failed 5 or more requests to the web in the last hour.
RCon password rejectedBattlEye refused the RCon password. Check the RCon settings of the server on SA Manager.
Monitoring worker keeps crashingThe SA Manager worker watching your server crashed several times in a row.
New ban appealA banned player sent an appeal through the public appeal form.
Mod update — restart scheduledA watched Steam Workshop mod was updated and an automatic restart with warnings was scheduled (Integrations → Workshop).

Several servers, one Discord

Run /connect once for each server, each with its own code. Every server keeps its own feeds, admin roles and settings, and every owner controls only their own server.

When more than one server is connected, add the server option to commands, with the server id (shown on the Integrations tab as #123) or its name:

/status server:123
/kick player:Bob reason:AFK server:123
/top metric:kills server:Chernarus PvP

Without it the bot tells you which servers are connected. Channels can be shared: two servers can post their kill feeds to the same channel.

Troubleshooting

The slash commands do not show up
Invite the bot again with the invite link (it adds the applications.commands scope). After a bot update Discord can take a while to show new commands; restarting the Discord app helps.
“This connect code is not valid”
Each code works once. Open the Integrations tab again and copy the current code. You can also tick Create a new connect code on save and save.
Nothing is posted to a feed
Check /setup show. Then check that the bot can see the channel and send messages and embeds there (channel settings → Permissions). Kill, chat and link features need the SAIdentityBridge server mod; joins and leaves also work from RCon.
“You need the Manage Server permission or one of the admin roles”
Give the member Manage Server, or add the IDs of your admin roles on the Integrations tab (comma separated) and save. Admin roles apply only to that game server.
Discord messages do not reach the game
The chat bridge must be on for the chat channel. If the bot does not react with 📨, it did not send the message: the channel is not the chat channel of a connected server, or the message was longer than 300 characters.
A ticket channel cannot be created
The bot needs Manage Channels and Manage Roles, and also every permission it gives in ticket channels (view, send, read history, attach files, embed links). Invite it again with the invite link to get all of them. If you set a ticket category, the bot must be allowed to create channels in it.
The linked role is not given
Move the bot's role above the linked role in Server Settings → Roles.