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.
- 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.
- Copy your connect codeOn SA Manager open your server → Integrations → Discord bot. Copy the /connect command with the 10-character code.
- ConnectIn any channel of your Discord type
/connect code:ABCDEF1234. The code works once; a new one is created right after. - Choose channelsIn each channel you want, type
/setup feedand pick the feed type. You can also paste channel IDs on the Integrations tab and save. - Check itType
/setup showto see which feed goes where, and/statusto see your server.
Who can do what
There are three levels:
| Level | Who | Can use |
|---|---|---|
| Everyone | Any member of your Discord | /ping, /status, /players, /player, /top, /link, /whoami, /report, /where, opening a ticket |
| Server admin | Members with Manage Server, or with one of the admin roles you set on the Integrations tab | /kick, /ban, /msg, /restart |
| Manage Server | Only 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).
💀 Bob died (Infected)
Joins and leaves joins
Connects, disconnects and kicks.
🔴 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.
Admin actions admin
Kicks, bans, messages and restarts from Discord, RCon commands and player notes from the web.
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.
@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
| Command | Who | What it does |
|---|---|---|
/connect code | Manage Server | Connects this Discord to the SA Manager server the code belongs to. The code is single-use. |
/setup feed type [channel] [chat_bridge] | Manage Server | Sends one feed to a channel (default: the current one). chat_bridge works only for the chat feed. |
/setup remove type | Manage Server | Turns one feed off. |
/setup show | Manage Server | Lists the servers connected to this Discord and where each feed goes. |
/ping | Everyone | Checks that the bot is running. |
Server information
| Command | Who | What it does |
|---|---|---|
/status [server] | Everyone | Server name, last health check, Query and RCon state and the current problem, if any. |
/players [server] | Everyone | Players online with slot number and ping. |
/player query [server] | Everyone | Profile of a player by name, SteamID64 or GUID: online or last seen, playtime and sessions, kills and deaths, first seen. |
/top [metric] [server] | Everyone | Top 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.
| Command | Who | What it does |
|---|---|---|
/kick player [reason] | Server admin | Kicks an online player. The reason is shown to the player (default: Kicked by admin). |
/ban player reason [hours] | Server admin | Adds 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 admin | Sends an in-game message to everyone, or only to one player. |
/restart minutes [reason] | Server admin | Schedules a restart in 0–60 minutes with countdown warnings in the game. |
Players
| Command | Who | What it does |
|---|---|---|
/link | Everyone | Gives the player a code to type in the game chat. See Account linking. |
/whoami | Everyone | Shows which DayZ account (name and SteamID64) is linked to your Discord. |
Reports and whitelist
| Command | Who | What it does |
|---|---|---|
/report server [message] | Everyone | Posts an automatic server report (state and checks) to the server's report channel, with your text above it. |
/set channel [server] | Manage Server | Makes the current channel the report channel of one server, or the default report channel of this Discord. |
/unset channel [server] | Manage Server | Removes that report channel. |
/where [server] | Everyone | Shows where reports are posted. |
/set whitelist list | Manage Server | Connects a named whitelist you created on the web (for example RNG1) to this Discord. |
/whitelist add list steamid [name] | Manage Server | Adds a SteamID64 to that whitelist right away. The reply says if whitelist enforcement is off on the web. |
/whitelist remove list steamid | Manage Server | Removes a player from the whitelist. |
/whitelist lists | Manage Server | Lists 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.
- The player types
/linkin your DiscordThe bot answers privately with a code such asSA-4F9C21. It is valid for 15 minutes. - 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. - 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.
Ticket system
Players click a button and get a private channel with your support team. Set it up on the Discord tickets page.
- 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.
- Add categoriesEach category is one button on the panel, for example Technical support, Report a player, Purchases. Up to 25 buttons are shown.
- 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-alicethat 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.
| Alert | When |
|---|---|
| Server is offline | The server has not answered the status query for about a minute. |
| Server FPS is low | Average server FPS over 5 minutes is below the limit set on the Integrations tab (default 15, 0 = off). |
| SA Manager bridge is silent | The server is online but the bridge mod sent nothing for 3 minutes: live players, chat and instant actions stop. |
| SA Manager bridge reports errors | The bridge mod failed 5 or more requests to the web in the last hour. |
| RCon password rejected | BattlEye refused the RCon password. Check the RCon settings of the server on SA Manager. |
| Monitoring worker keeps crashing | The SA Manager worker watching your server crashed several times in a row. |
| New ban appeal | A banned player sent an appeal through the public appeal form. |
| Mod update — restart scheduled | A 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
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”
Nothing is posted to a feed
/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.