Cross-platform Python and Nextcord-based Minecraft console using Discord to issue commands.
python 3.8+
nextcord (pip install nextcord)
dotenv (pip install python-dotenv)
loguru (pip install loguru)
Minecraft server host with Discord bot to run commands through.
Owner/operator distinction for command permissions.
Start, stop, and send any Minecraft console commands.
Automatic, user-defined restart and backup intervals.
/query command for any user to check the server status and connected players.
Live player count using Discord activity status.
No server-side modifications necessary - runs by calling the server jarfile.
-
Download this repository.
-
Do either of the following:
-
git clone <repository url>
in your terminal/console. -
Code > Download ZIP (from the GitHub page).
-
-
-
Open "config/obsidia.conf" with any text editor.
-
Change settings based on your preferences.
- If you're confused about settings, such as how to use SMTWRFD 0000, open the readme in the config folder.
-
Set the directory where your server is stored. This can be relative to __main__.py, or absolute.
- You must launch the server at least once before using it with this. Otherwise, it will crash.
-
-
Create a file named ".env" in the directory containing __main__.py.
-
Add "DISCORD_TOKEN=<your bot's Discord token>" to the file, e.g. DISCORD_TOKEN=abcdefg
-
Yes, you will need to make your own Discord bot account:
-
Go to discord.com/developers and create a new application.
-
Go to the bot tab and make it a bot, then get the token.
-
Go to OAuth2 -> URL Generator and invite your bot with the following:
-
"bot" and "applications.commands" scopes.
-
"Send Messages" and "Use Slash Commands" bot permissions.
-
-
-
-
Add your Discord user ID to owners.txt, and any operators to operators.txt (in the config folder).
- See the readme in the config folder for information about how to enter this info.
-
Start the program by running __main__.py.
- Quit by using Ctrl+C in the terminal that the program runs in.