This guide explains how to properly configure Mordhau RCON bot configuration for Schweppe’s Mordhau RCON Discord Bot. This bot is designed for larger Mordhau servers that require advanced moderation tools, automated utilities, and detailed logging directly inside Discord.
The Mordhau RCON bot allows server owners and administrators to securely manage Mordhau server administration through Discord, including player moderation, RCON command execution, and persistent data tracking.
Security is critical. Treat all bot credentials with the same care as root server access. Never grant access to your bot or its tokens to anyone you would not fully trust with your infrastructure.
What Is the Mordhau RCON Discord Bot? #
Schweppe’s Mordhau RCON Discord Bot is a specialized tool that connects your Mordhau server to Discord using RCON and the Discord API. It is commonly used by high-population or competitive servers that need:
- Centralized moderation through Discord
- Automated logging and audit trails
- Player lookup and identity linking
- Persistent data storage
- Secure remote server control
Step 1: Preparing the Mordhau RCON Bot #
The Mordhau RCON Discord Bot is pre-installed and ready for configuration upon order. Your primary task is to gather the required credentials and correctly populate the config.json file.
No bot functionality will work until all required credentials are configured.
Step 2: Setting Up MongoDB (Required) #
MongoDB is used by the Mordhau RCON bot for persistent data storage, including player data, logs, and internal state tracking.
MongoDB Setup Steps #
- Visit the MongoDB Getting Started guide
- Create a MongoDB account
- Create a new MongoDB cluster
- Select AWS as the provider
- Choose the region closest to your Mordhau server
- Record the MongoDB connection string
The connection string will be required when editing the bot’s configuration file.
Step 3: Obtaining a Steam API Key #
A Steam API key is required for player lookups and for linking Steam accounts to Playfab identities within Mordhau.
Steam API Key Setup #
- Register at the Steam API Key registration page
- Use your Mordhau server name as the domain
- Generate and save the API key
This key is sensitive and should never be shared publicly.
Step 4: Configuring the Discord Bot Application #
The Mordhau RCON bot requires a Discord application to communicate with Discord’s API.
Discord Developer Portal Setup #
- Visit the Discord Developer Portal
- Create a new application
- Navigate to the Bot tab
- Copy the following credentials:
- Bot Token
- Public Key
- Client ID
Important: These credentials grant full control of the bot. Store them securely and never expose them in screenshots, logs, or repositories.
Step 5: Editing the Config.json File #
Once all credentials are collected, you can configure the Mordhau RCON bot.
Configuration Steps #
- Locate and open the
config.jsonfile - Enter your MongoDB connection details near the bottom of that file.
- Add your Steam API key in the proper field.
- Insert the Discord bot token, public key, and client ID
- Double-check all values for accuracy
Incorrect or missing values in config.json will prevent the bot from starting or functioning correctly.
Step 6: Finalizing the Mordhau RCON Bot Setup #
After completing the configuration:
- Save the
config.jsonfile - Restart the RCON bot service
- Monitor startup logs for errors
If the bot starts successfully, it will connect to Discord and begin interacting with your Mordhau server using RCON.
Security Best Practices for Mordhau RCON Bots #
Because this bot has administrative access to your server, security must be _toggle non-negotiable_.
- Never share bot tokens or API keys
- Restrict Discord permissions to trusted roles only
- Rotate credentials if exposure is suspected
- Limit bot access to essential Discord channels
Treat your bot credentials with the same importance as SSH keys or root passwords.
Proper Mordhau RCON bot configuration enables powerful server moderation, automation, and logging through Discord. When configured correctly and secured properly, this bot becomes an essential tool for large or competitive Mordhau communities.
Taking the time to follow best practices during setup will ensure stability, security, and long-term reliability.
Need Help or Support? #
For support, troubleshooting, or additional guidance with Schweppe’s Mordhau RCON Discord Bot, join the Academy Hosting support community: