Skip to content

Telegram bot for checking the status of Minecraft Servers and the players that are online

Notifications You must be signed in to change notification settings

GSiesto/MCServerStatBot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MCServerStatBot

Telegram Bot that helps you to check if your favorite Minecraft Servers are online. You can even see the players that are connected.

The Bot is deployed in a Raspberry Pi, you can chat with it now

@MCServerStatBot

ScreenShots

How to Execute in your local machine

Enviroment Variables

TOKEN = Your telegram TOKEM ID

MODE = "DEV" (Local Machine) or "PROD" (For a Heroku deployment)

Usage

Execute with python the file main.py. If everything was set up fine, you will be able to start chatting with your own bot. A file called persistent_data will be generated. This file makes it possible for the instance to know again what the link was, and thus be able to use the inline buttons (CallBacks) on the screen.

Example

pip install -r requirements.txt
MODE=dev TOKEN=xxxxxxxxxxxxxxxxxxxxxxxx python main.py

Notes

  • If the Minecraft Servers doesn't allow Queries enable-query=true in server.properties, the bot will not be able to show the players that are connected to the game.
  • It is only possible to use the inline buttons for the last petition that was made. For example, if you called two status instances, the inline buttons will only work for the last one.

About

Telegram bot for checking the status of Minecraft Servers and the players that are online

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages