Minecraft Server Status telegram bot.
- Get player count, online players, server version, and name
- Get latency to server (ping from bot to server)
Rename .env.example
to .env
, replace values of BOT_TOKEN
and USER_CHAT_ID
to yours(If you are willing to use this bot in a group, you need to get your group chatid first).
Additionally, you can preset your MC server address as MC_SERVER_ADDRESS
in .env
file.(You can set the address later by calling /setting
)
Add Bot Father to your contact, use /newbot
command to create your own bot. You will get your HTTP api token as BOT_TOKEN
eventually.
-
Fastest way: Add Get My ID to your contact, use
/start
command and you will get your current chatid as yourUSER_CHAT_ID
. -
Conventional way: Visit Telegram Web, open Saved Messages chat window, the number behind
web.telegram.org/a/#
is your user chatid, sometimes it is a negative figure. (You can also appy this approach to get your group channel chatid, etc.)
/start
Welcome text/help
Show help text/mc
Show MC server status/setting
Set MC server address/about
Show information about the bot