McBot
McBot copied to clipboard
[Bug/漏洞] 图片链接CQ码转义
trafficstars
Checks / 检查
- [X] I confirm that I have searched for existing issues / pull requests before reporting to avoid duplicate reporting./我确认在报告之前我已经搜索了现有的问题或者拉取请求,以避免重复报告。
- [X] I confirm that I followed the Docs and read the Changelog, but this problem still exists./我确认我按照文档配置并阅读了Changelog,但这个问题仍然存在。
- [X] I confirm that I noted that if I don't follow the instructions, the issue may be closed directly./我确认我已经检查,如果我不按照说明进行操作,该问题可能会被直接关闭。
Java Version / Java版本
graalvm-jdk-22.0.2+9.1
Minecraft Version / Minecraft版本
1.20.1
McBot Version / McBot版本
fabric-2.2.1.1
Description / 描述
To Reproduce / 重现
随便发个图片,&的amp;没转义
Log / 日志
Config / 配置
# 通用
[common]
group-on = true # 开启q群功能
enable = true # 是否启用
debug = false # 是否开发模式,将显示事件信息操作
language-select = "zh_cn" # 选择语言系统
auto-open = true # 自动连接
image-on = true # 是否开启聊天栏图片功能
bind-on = false # 是否开启绑定校验
group-id-list = [695792475] # 支持多个q群
# 状态
[status]
r-enable = true # 全局接收
r-cmd-enable = true # 命令接收
r-chat-enable = true # 消息接收
s-enable = true # 发送消息
s-qq-welcome-enable = true # 发送欢迎玩家入群消息
s-qq-leave-enable = true # 发送玩家退群消息
s-join-enable = true # 发送加入服务器消息
s-leave-enable = true # 发送离开服务器消息
s-death-enable = true # 发送玩家死亡消息
s-chat-enable = true # 发送服务器聊天
s-advance-enable = false # 发送成就消息
# 命令
[cmd]
welcome-notice = "欢迎加群~" # 自定义q群加入事件消息
leave-notice = "离开了我们qwq" # 自定义q群离开消息
cmd-start = "!" # q群中使用命令的关键符号
game-prefix-on = true # 是否开启显示到游戏中的前缀
id-game-prefix-on = true # 是否开启显示到游戏中的id前缀
qq-game-prefix = "群聊" # 来自q群显示到游戏中的前缀
guild-game-prefix = "频道" # 来自频道显示到游戏中的前缀
group-nick-on = false # 是否开启显示到游戏中的昵称为群昵称
mc-prefix-on = true # 是否开启来自游戏的消息显示到群中的前缀
mc-prefix = "MC" # 来自游戏的消息显示到群中的前缀
mc-chat-prefix-on = false # 是否开启游戏中自定义关键词
qq-chat-prefix-on = false # 是否开启qq中自定义关键词
mc-chat-prefix = "q" # 游戏中自定义的消息头文本
qq-chat-prefix = "m" # qq中自定义的消息头文本
# 机器人
[bot_config]
url = "ws://192.168.1.256:65536" # 地址(支持域名和ipv6)
token = "54188" # 鉴权
mirai = false # mirai鉴权方式不一样
bot-id = 1145141919810 # 机器人qq
reconnect = true # 重连(未实现)
max-reconnect-attempts = 20 # 重连次数(未实现)
请使用群内的2.2.2版本
请使用2.3.0
请使用2.3.0
2.3.0我还是同样的问题,显示无效的连接(github上自己拉下去构建的版本,不知道有没有正式版,另外群在哪请问?)