You can use this bot to start your minecraft server, get the server status, get the number of players online, and more. More Details : https://aternos.org/:en/
- Clone this repository to your local machine.
- Install the required libraries using
pip install -r requirements.txt
. - Create a Discord bot and get the bot token from the Discord Developer Portal.
- Enable messages in privileged intents for your bot.
- Fill in your Aternos credentials in the
on_message
function of thebot.py
file. - Start the bot using
python bot.py
.
!startserver
: Starts the Aternos server.!serverstatus
: Gets the status of the Aternos server (online, offline, starting).!playercount
: Gets the number of players online on the Aternos server.!playerlist
: Gets the list of players online on the Aternos server.!serveraddress
: Gets the address of the Aternos server.
- If the server is already online and you try to start it, the bot will report that the server is already online.
- If the server is offline and you try to get the number or list of players online, the bot will report that the server is currently offline.
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.
This project was inspired by the Python Aternos API Wrapper by Marceau Cuvelier.