Discord Bot Setup (Optional)
The Discord bot enables remote server control directly from Discord.
Step 1: Create the Bot Application
- Visit Discord Developer Portal
- Click New Application
- Set a name (e.g., "LiveConsole Bot")
- Navigate to Bot → Click Add Bot
- Under Privileged Gateway Intents, enable:
MESSAGE CONTENT INTENT (Required!)
SERVER MEMBERS INTENT
PRESENCE INTENT
- Click Reset Token → Copy the token
Step 2: Invite the Bot
- Go to OAuth2 → URL Generator
- Select bot scope
- Under bot permissions, select:
Send Messages
Read Messages
Embed Links
- Copy the generated URL and open it
- Invite the bot to your Discord server
Step 3: Configure in config.yml
Code (Text):
discord-bot:
enabled: true
token: "YOUR_BOT_TOKEN_HERE"
command-channel-id: "123456789012345678" # Channel ID
command-prefix: "!"
# Authorized Discord user IDs
authorized-users:
- "987654321098765432" # Your Discord ID
How to Get Discord IDs:
- In Discord, go to Settings → Advanced
- Enable Developer Mode
- Right-click a channel → Copy ID (for command-channel-id)
- Right-click your username → Copy ID (for authorized-users)
Step 4: Last step
Add Liveconsole role inside your channel (only one channel)
Available Bot Commands:
!execute <command> (or !exec, !exe) - Execute a server command
!stop - Stop the server
!restart - Restart the server
!players (or !list) - Show online players
!status - Show server status (TPS, memory, etc.)
!suspect add <player> - Add player to suspect list
!suspect remove <player> - Remove player from suspect list
!suspect list - Show all suspects
!help - Display help message
Note: Only authorized users configured in authorized-users can use these commands.