A Discord bot module for querying Minecraft server status and player information.
中文文档 | English
- ✅ Check Minecraft server status (online/offline)
- 👥 Get player count and list
- 📊 Query server version and MOTD
- 🔄 Support for multiple Minecraft servers
- 💬 Clean Discord embed messages
- Python 3.8+
- Discord bot token
- Minecraft server address(es)
- Clone this repository
- Install dependencies:
pip install -r requirements.txt
- Copy
.env.example
to.env
and configure your settings - Configure your Minecraft server(s) in
server_info.json
- Run the bot:
python main.py
Edit .env
file with your:
DISCORD_TOKEN
: Your Discord bot tokenTEST_GUILD_ID
: (Optional) Guild ID for testing/development
Edit server_info.json
with your server information:
[
{"ip":"play.example.com", "Name": "My Minecraft Server"},
{"ip":"mc.example.org", "Name": "Another MC Server"}
]
/ip
: Display status of all configured Minecraft servers
├── main.py # Bot initialization
├── cogs/
│ └── status_cog.py # Server status command implementation
├── utils/
│ └── config_loader.py # Configuration utilities
├── server_info.json # Server configuration
└── .env # Environment variables
For issues or feature requests, please open an issue on GitHub.
MIT