This is a python script for a Discord bot. Based on mcipc, the bot can check the status or get the player list of user-specified Minecraft servers.
Requires Python 3.8.0 or higher.
- Install Python and pip on your system.
- Check the version of the python in the terminal. The version should be higher than 3.8.0.
$ python3 --version
- Clone the repository and place it in a folder.
$ git clone https://github.com/irvine1231/python-minecraft-discord-bot.git
- Navigate to the folder in the terminal.
$ cd python-minecraft-discord-bot
- Install the requirements
$ pip3 install -r requirements.txt
- Duplicate
.env.example
file and name the copy.env
. - Place your discord bot token, minecraft host, and minecraft port inside the
.env
file.
The enable-query
configuration inside the minecraft server.properties
file needs to be set to true
, otherwise the bot won't work.
Get the hostname or ip defined in the env file.
Get the current state of the minecraft server.
Get the current player list of the minecraft server.
The Python Minecraft Discord Bot is open-sourced software licensed under the MIT license.