Overview
Themcdis run command starts the McDis-RCON Discord bot and begins managing your Minecraft servers and networks.
Usage
Prerequisites
What Happens on Startup
When you runmcdis run, the application:
- Loads configuration from
md_config.yml - Validates settings (token, panel ID, language, processes)
- Connects to Discord using the provided bot token
- Initializes processes (servers and networks)
- Loads addons from
.mdaddons/directory - Loads Discord event behaviors from the package
- Starts Flask server (if enabled in config)
- Creates panel interface in the specified Discord channel
- Starts console listener for terminal commands
Startup Logs
Example output:Configuration Validation
The command validates your configuration:Discord bot token for authentication
Discord channel ID for the control panel
Interface language. Valid:
en, esNumber of backups to retain (1-5)
Enable Flask web interface
Server and network definitions
Error Handling
If configuration is invalid, you’ll see specific error messages:Source Code
Therun command is imported from main.py:
Interactive Console
After startup, you can use these commands:Graceful Shutdown
PressCtrl+C or use the exit command:
- Stops all running processes
- Waits up to 60 seconds for graceful shutdown
- Force-kills processes if they don’t stop
- Unloads all plugins and addons
- Exits the application
Next Steps
Console Commands
Learn available console commands
Process Manager
Manage your servers and networks
