How loganrundle-1/server-management-bot works
Server Management Discord Bot exposes host and VPS administration through Discord slash commands. A Discord user initiates commands handled in start.py, which dispatches to local.py for FRP, Docker, system, and script operations or to vps.py for remote firewall changes over SSH. Port management spans local FRP configuration and VPS iptables; script operations use SSH to reach the configured server. The README documents additional command capabilities whose detailed wiring is not visible in the sampled excerpts, so those links are shown only at the subsystem level.
Main entry points: start.py Slash commands · vps.py VPS firewall · local.py Local port utilities
Components 17
Discord Interface
- Slash commands
start.py - General commands
start.py
Port Management
- Port commands
start.py - VPS firewall
vps.py - VPS iptables rules
vps.py - FRP port config
local.py - Local port utilities
local.py
Host Operations
- Docker controls
local.py - Docker host
- System monitoring
local.py - Local system
Script Management
- Script commands
start.py - Script operations
local.py - Server SSH
local.py - Managed server
Other components
- Discord user
- Discord platform
Connections 19
- Discord user → Slash commands: invokes
- Slash commands → Discord platform: syncs commands
- General commands → Discord platform: responds through
- Slash commands → General commands: dispatches
- Slash commands → Port commands: dispatches
- Slash commands → Script commands: dispatches
- Port commands → VPS firewall: calls
- Port commands → Local port utilities: calls
- VPS firewall → VPS iptables rules: reads and updates
- VPS firewall → Managed server: SSH commands
- Local port utilities → FRP port config: reads and updates
- Local port utilities → Docker controls: restarts FRP
- Script commands → Script operations: calls
- Script operations → Server SSH: executes via
- Server SSH → Managed server: runs commands
- Slash commands → Docker controls: dispatches Docker operations
- Docker controls → Docker host: controls containers
- Slash commands → System monitoring: dispatches monitoring
- System monitoring → Local system: reads metrics