tgbridge
tgbridge copied to clipboard
A feature-rich multiloader mod to sync Telegram and Minecraft chats
Minecraft Telegram Bridge
A feature-rich multiloader mod to sync Telegram and Minecraft chats
https://github.com/vanutp/tgbridge/assets/11143488/697a6d5d-1f2c-4156-bf8d-140446a83f5e
Quick start
- Download and install the latest release for your loader from the Modrinth page: https://modrinth.com/mod/tgbridge
- Start the server
- Follow the instructions in the generated config file located at
config/tgbridge/config.yml(plugins/tgbridge/config.ymlfor Paper) - Restart the server (currently restart is required when changing
botToken) - The bot should work now
- You can look through the config file and change the settings however you like.
Use
/tgbridge reloadto reload the config.
Features
- Supports most of Telegram messages
- Supports achievements & death messages from any mod out of the box
- Supports Telegram topics (bot will work only in its dedicated topic)
/listcommand in Telegram will print the list of currently online players- If you have BlueMap and Xaero's Minimap/World Map installed, you can set the
messages.bluemapUrloption to be able to view shared waypoints from Telegram on the BlueMap - If you don't want every Minecraft message to be forwarded, you can set the
messages.requirePrefixInMinecraftoption to your desired prefix (for example!). Only messages starting with that prefix will be forwarded. - If you do want every message to be forwarded, but don't like that tons of messages are sent in the Telegram chat,
you can set the
messages.mergeWindowoption to some value (for example,60). Messages subsequently send within this interval will be merged into one. - If some of your players have connection problems, you can set the
events.leaveJoinMergeWindowoption to some value (for example,120). If a player leaves and then joins within this amount of seconds, leave and join messages will be deleted from Telegram. - You can customize which event messages are sent to Telegram under the
eventsconfig section
Using other languages for bot messages
This mod uses 2 language files: lang.yml for bot's own translation strings and minecraft_lang.json
for Minecraft translations. It's a bit hard to use another language due to the fact that the minecraft server installation
only supports English language.
You can download lang.yml for other languages from the
translations directory of this repository.
By default minecraft_lang.json doesn't exist and the bot will use the default English translations provided by the server.
If you want to use another language, you need to install this mod on the client, change the language
to the desired one and execute the /tgbridge dump_lang command.
It will create this file in the mod configuration directory. You can then copy it to the server.
The generated file will include translations for all currently installed mods, so if you add a new mod, you'll need to
generate the language again.
Server or client?
This mod will only work on dedicated server. When installed on the client, the main logic won't load. However, it will
provide a /tgbridge dump_lang command to dump minecraft translations to the current language.
Contributions
Feel free to open an issue if you think something is missing/can be done better. Please ask in an issue before creating a pull request
Acknowledgements
This project is inspired by these projects:
- https://github.com/CuteNekoOwO/FabricTgBridge
- https://github.com/ntoneee/minecraft-telegram-bridge