MultiMessageBridge - 连接各类即时通讯工具
Bstats Page
文档还提供以下语言版本:俄语
MultiMessageBridge 插件允许你将 Minecraft、Discord、Telegram 以及其他即时通讯工具(通过附加组件)连接在一起!
在不同平台之间交换消息、图片和贴纸——这真是太棒了!
特别感谢
- Fairkor 和 MediocreSteam66 赞助了本插件的开发并参与了测试!
- Anea - 为 Modrinth 上的插件设计了图标
- hellbowe - 协助开发了 0.5 版本
插件功能
- 使用附加组件在 Telegram、Discord、Minecraft 和其他平台之间同时发送消息
- 在不同平台之间发送图片(在游戏中显示为可点击的文本)
- 跨平台显示贴纸
- 使用原生方法跨平台回复消息
- 在服务器上显示玩家加入和离开的消息
- 显示死亡信息
- 显示获得的成就
- 将成就和死亡信息翻译成任何语言
- 灵活的配置选项
- 将服务器控制台输出发送到 Discord
- 支持 Telegram 中的线程(Thread)
兼容插件
MMB 支持的插件:
- EssentialsX Chat
- ChatEX
- SkinsRestorer
- PlaceholderAPI
安装与设置
安装插件
- 从 Modrinth 下载插件的最新版本
- 将下载的文件放入服务器的
plugins 文件夹中
- 启动服务器。你可能会在控制台中看到 2 个错误;这表明尚未设置 Discord 和 Telegram 机器人的令牌(token)
- 停止服务器以进行配置更改
插件配置
配置 config.yml
# 是否在数据库中存储消息以便跨平台回复消息
enableMessageStorage: true # 推荐设为 true,默认为 false
# 更新聊天中频道信息的间隔,单位为秒
serverInfoUpdateTime: 603
# 频道描述中显示的默认文本
defaultServerInfoFormat: '在线人数: {online} 总玩家数: {total} 运行时间: {uptime}'
# 用于在 Discord 频道描述中显示服务器运行时间的格式
timeFormat: '{d} 天 {h} 小时 {m} 分钟' # defaultServerInfoFormat 中的占位符 {uptime}
# 是否将英文的成就和死亡信息翻译成其他语言
translateMessages: true
# 是否在控制台中重复所有玩家的消息
sendMessagesToConsole: true
# 要使用的平台。如果指定 [],则启用所有平台
enabledReceivers:
- Minecraft
- Discord
- Telegram
imageHosting:
# 使用哪种图床服务;目前仅 freeimage 可用
type: freeimage
heads:
# 配置玩家头像的显示方式(例如,在加入/离开消息中)
# 对于 SkinsRestorer https://mc-heads.net/avatar/%skinsrestorer_texture_id_or_steve%.png#%username%
url: https://crafthead.net/helm/%nickname%
provider: default
# 是否将你的服务器包含在指标统计中
metrics: true
Discord 机器人设置
详细信息请参阅维基
- 创建一个机器人并获取其令牌,确保启用消息意图(message intent)
- 配置
Discord.yml
bot:
# 在此输入你的机器人令牌
token: 'paste token here'
# 输入你服务器的 Guild ID
guild: 1234567890123456789
channels:
messages:
type: main_text
id: 1234567890123456789 # 玩家消息频道的 ID
# 频道描述,留空 '' 则使用默认描述
description: '在线: {online} | 注册: {total} | 运行时间: {uptime}'
console:
type: console
id: 1234567890123456789 # 控制台频道的 ID
description: ' '
# 是否要求控制台频道中的命令以特定前缀开头
commandsShouldStartsWithPrefix: true
commandPrefix: '!/'
# 显示消息的配置,详见维基
messages: # ...
# @everyone, @here 提及的短语过滤器
phraseFilter:
filterMessages: true
filters:
'@everyone': '[everyone]'
'@here': '[here]'
Telegram 机器人设置
详细信息请参阅维基
- 前往 BotFather 并创建一个机器人
- 如果使用群组,请配置机器人权限
- 将机器人添加到你的群组中,或使用私聊
- 复制令牌
- 将你的令牌添加到
Telegram.yml 中
bot:
token: 'Your Bot Token'
- 启动服务器并等待完全加载
- 向机器人发送一条消息(私聊或群组),以获取标识符。你将在控制台中看到类似以下内容:
[00:19:57 INFO]: [MMB] Preconfigure debug enabled! Please, disable it in Telegram.yml after setting it up!
[00:19:57 INFO]: [MMB] ChatId: 7109693268 ThreadId: 123 Message: ?? ????
[00:19:57 INFO]: [MMB] [Telegram] Azimkindev -> ?? ????
- 配置
Telegram.yml
bot:
token: 'Your Bot Token'
mainChat: 7109693268 # 来自控制台消息的 ChatId
mainThread: -1 # 群组中的线程 ID,如果没有线程或使用私聊则保留 -1
#...
messages: {} #... 有关消息设置的详细信息请参阅维基
debug:
# !!!!! 在配置好频道和线程 ID 后,请务必将此设置为 false
preConfiguredDebug: false
最后一步
你现在可以自豪地启动你的服务器了。如果出现错误,你可以随时联系技术支持。
支持与技术支持
您可以在我的 Discord 服务器 上获取支持。
您也可以在 GitHub Issues 上报告错误。
MultiMessageBridge - Link Messengers Together
Bstats Page
Documentation also available in these languages: russian
The MultiMessageBridge plugin allows you to connect Minecraft, Discord, Telegram, and other messengers (via add-ons) together!
Exchange messages, images, stickers between different platforms - it’s really wonderful!
Special Thanks
- Fairkor and MediocreSteam66 for sponsoring development and testing the plugin!
- Anea - Icon for the plugin on Modrinth
- hellbowe - help with developing version 0.5
Plugin Features
- Send messages simultaneously between Telegram, Discord, Minecraft, and other platforms using add-ons
- Send images between different platforms (displayed in-game as clickable text)
- Display stickers across platforms
- Reply to messages across platforms using native methods
- Display player join and leave messages on the server
- Display death messages
- Display received achievements
- Translate achievements and death messages into any language
- Flexible configuration
- Send server console output to Discord
- Support for threads in Telegram
Compatible Plugins
Plugins supported by MMB:
- EssentialsX Chat
- ChatEX
- SkinsRestorer
- PlaceholderAPI
Installation and Setup
Installing the Plugin
- Download the latest version of the plugin from Modrinth
- Place the downloaded file into your server's
plugins folder
- Start the server. You will likely see 2 errors in the console; these indicate that Discord and Telegram bot tokens are not set
- Stop the server to make configuration changes
Plugin Configuration
Configuring config.yml
# Whether to store messages in a database for cross-platform message replies
enableMessageStorage: true # recommended true, default false
# Interval to update channel info in chat, in seconds
serverInfoUpdateTime: 603
# Default text displayed in the channel description
defaultServerInfoFormat: 'Online: {online} Total players: {total} Uptime: {uptime}'
# Format used to display server uptime in Discord channel description
timeFormat: '{d} days {h} hours {m} minutes' # placeholder {uptime} in defaultServerInfoFormat
# Whether to translate achievements and death messages from English
translateMessages: true
# Whether to repeat all player messages in the console
sendMessagesToConsole: true
# Platforms to be used. If [] is specified, all will be enabled
enabledReceivers:
- Minecraft
- Discord
- Telegram
imageHosting:
# Which image hosting to use; currently only freeimage is available
type: freeimage
heads:
# Configure display of player heads (e.g., in join/leave messages)
# For SkinsRestorer https://mc-heads.net/avatar/%skinsrestorer_texture_id_or_steve%.png#%username%
url: https://crafthead.net/helm/%nickname%
provider: default
# Whether to include your server in metrics
metrics: true
Discord Bot Setup
For detailed information, see wiki
- Create a bot and get its token, make sure to enable message intent
- Configure
Discord.yml
bot:
# Enter your bot token here
token: 'paste token here'
# Enter your server's Guild ID
guild: 1234567890123456789
channels:
messages:
type: main_text
id: 1234567890123456789 # ID of the player messages channel
# Channel description, leave '' to use default description
description: 'Online: {online} | Registered: {total} | Uptime: {uptime}'
console:
type: console
id: 1234567890123456789 # ID of the console channel
description: ' '
# Whether to require a prefix for commands in the console channel
commandsShouldStartsWithPrefix: true
commandPrefix: '!/'
# Configuration for displayed messages, see wiki for details
messages: # ...
# Phrase filter for @everyone, @here mentions
phraseFilter:
filterMessages: true
filters:
'@everyone': '[everyone]'
'@here': '[here]'
Telegram Bot Setup
For detailed information, see wiki
- Go to BotFather and create a bot
- Configure bot permissions if using a group
- Add the bot to your group, or use private messages
- Copy the token
- Add your token to
Telegram.yml
bot:
token: 'Your Bot Token'
- Start the server and wait for full load
- Send a message to the bot (private or group) to get identifiers. You will see something like this in the console:
[00:19:57 INFO]: [MMB] Preconfigure debug enabled! Please, disable it in Telegram.yml after setting it up!
[00:19:57 INFO]: [MMB] ChatId: 7109693268 ThreadId: 123 Message: ?? ????
[00:19:57 INFO]: [MMB] [Telegram] Azimkindev -> ?? ????
- Configure
Telegram.yml
bot:
token: 'Your Bot Token'
mainChat: 7109693268 # ChatId from console message
mainThread: -1 # Thread ID in group, leave -1 if no threads or using private chat
#...
messages: {} #... see wiki for message setup
debug:
# !!!!! Be sure to set this to false after configuring channel and thread IDs
preConfiguredDebug: false
Final Steps
You are now ready to proudly launch your server. If errors occur, you can always contact tech support.
Support and Technical Help
You can get support on my Discord server
You can also report bugs on Github Issues
评论 0
登录后参与评分
还没有评论,来抢沙发吧