Skip to content

WWFyb3NsYXYg/tcbmsrcon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Telegram control bot for Minecraft server by RCON

Installation

  1. pip install mcrcon Python library for server management via RCON protocol

  2. Variables (file config.py)

    • YOUR_TELEGRAM_BOT_TOKEN - Token of your Telegram bot. Receive @BotFather

    • ADMINS_ID - ID of users who have access to use the bot. If there are several, list through a symbol _. You can get an ID at @my_id_bot

    • IP_MC_SERVER - IP address of your server

    • PASS_RCON – password for RCON connection. Configurable in the server file server.properties. View screenshot

    • PASS_PORT (optional, default 25575) – port for RCON connection

    • You can also change the language of the bot. The language variable takes the values ua, en, ru

Menu screenshot

Functions

  • Issuing a donation - sends the command lp user NICKNAME parent set DONATE.

    DONATE has meanings: admin, moder, helper, moderator, yt, default.

    You can add your own privileges or change the configured ones in the file donations.py.

    To add, separated by commas: ["donate tag for the command","Donation name that will be displayed in the keyboard"].

  • Issuance of currency to the player - sends the command eco give NICKNAME VALUE.

    VALUE accepts only numbers

  • Unban a player - sends the command pardon NICKNAME.

  • Ban player - sends the ban NICKNAME command.

    When entering a player's nickname separated by a space, you can also enter the reason for the ban.

  • Restart server - sends a reload command. In the next paragraph, when choosing the option Yes, I want to restart, the command reload confirm will be sent

  • Other commands just write to the chat with the bot: say hello, //help. You can use the bot in a group. Then address like this: /say hi@bot_username, //help@bot_username

Credits

https://github.com/DavisDmitry/TeleMCRCON - sending commands over RCON

About

Telegram control bot for Minecraft server by RCON

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages