MiNotifications is a Telegram (and now Discord) bot that notifies you when a player joins your private Minecraft server. It periodically checks the server using mcstatus and sends a message to your private Telegram channel with the player's name.
- Minecraft Java server player join notifications
- Cooldown system to avoid repeated messages from the same player
- Telegram/Discord bot integration
- Optional bash script for easier launch on Linux
Go to BotFather, follow the instructions to create a new bot, and get your TELEGRAM_TOKEN.
Linux instructions (recommended):
python -m venv minotif
source minotif/bin/activate
pip install mcstatus python-telegram-bot requestsWindows instructions:
python -m venv minotif
minotif\Scripts\activate
pip install mcstatus python-telegram-bot requests
To find your Telegram private channel's chat_id:
- Log in to the web version of Telegram
- Open your channel
- Look at the URL:
https://web.telegram.org/a/#-1002223334455 - The
-1002223334455part is yourchat_id - If your channel ID doesn’t start with
-100, just add it manually as a prefix
Open the script and change these settings:
SERVER_IP = "your.minecraft.server:port"
CHECK_INTERVAL = 10 # seconds between server checks
TELEGRAM_TOKEN = "your_telegram_bot_token"
CHAT_ID = -100xxxxxxxxxx # your channel's chat ID
COOLDOWN_HOURS = 2 # cooldown to avoid join-spam from the same playerAdd bot as Admin to your channel, make sure it does have access to channel's messages.
Linux:
source minotif/bin/activate
python server_monitor.pyAlternatively, make the helper script executable and run it:
chmod +x run_monitor.sh
./run_monitor.shWindows:
minotif\Scripts\activate
python server_monitor.py