Simple console application that pings user and logs when any specified players appear online in a given server IP (Java Edition)
This application utilizes the mcstatus library to incrementally fetch server data on the user's behalf.
-
Python V3.10 (or later)
-
simpleaudio
- License: MIT
- GitHub Repository
-
mcstatus
- License: Apache License 2.0
- GitHub Repository
-
discord.py | (Used only if integrating Discord Bot)
- License: MIT
- GitHub Repository
-
python-dotenv | (Used only if integrating Discord Bot)
- License: BSD-3-Clause License
- GitHub Repository
-
Clone Repo or download/unzip folder onto local machine
-
Install dependencies using PIP
pip install -r requirements.txt
- Open terminal from repository folder then run the following command:
python pinger.py
Or
python3 pinger.py
-
Type and enter 'newconfig' to initialize configurations.
-
Type and enter 'start' to begin running checker
- Type and enter 'help' to see full list of commands
Example config.json file:
- Install dependencies using PIP
pip install -r requirements.txt
- Create a Discord Bot following this guide
- For scopes, only "bot" needs to be checked
- For permissions, only "send messages" needs to be checked
-
Run discord_bot.py inside the 'discord' directory
-
You will be prompted for the Bot Token. Copy, paste, then enter your Bot Token key.
-
Invite bot to your server.
-
Refer to the help.txt guide for commands
Pull requests are welcome. Please specify fixes/changes.
Telling me how trash the code is is also welcome
- No UI for main application.