McBot icon indicating copy to clipboard operation
McBot copied to clipboard

[Bug/漏洞] 执行自定义命令,返回结果显示“该消息类型暂不支持查看”

Open QianMo0721 opened this issue 11 months ago • 2 comments

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版本

java version "17.0.14" 2025-01-21 LTS Java(TM) SE Runtime Environment GraalVM EE 21.3.13 (build 17.0.14+8-LTS-jvmci-21.3-b98) Java HotSpot(TM) 64-Bit Server VM GraalVM EE 21.3.13 (build 17.0.14+8-LTS-jvmci-21.3-b98, mixed mode, sharing)

Minecraft Version / Minecraft版本

Mohist 1.20.1

McBot Version / McBot版本

McBot-1.20.1+2.3.0+alpha4-forge.jar

Description / 描述

Image

发送自定义命令时,结果返回显示"该消息类型暂不支持查看"

To Reproduce / 重现

使用Lagrange.OneBot, 配置正向连接和签名服务. 使用Linux协议登录 然后使用/mcbot connect连接 /mcbot addGroup添加QQ群 在群内发送自定义指令)("!list""!say") 返回结果为"该消息类型暂不支持查看" 而且不管是Lagrange.OneBot和服务端Lastest日志都没有输出任何Error级别的东西.

Log / 日志

1

Config / 配置

{ "common": { "groupOn": true, "groupIdList": [ "" ], "enable": true, "debug": false, "languageSelect": "zh_cn", "autoOpen": true, "imageOn": true, "bindOn": false }, "status": { "connectInfoEnable": true, "rEnable": true, "rCmdEnable": true, "rChatEnable": true, "sEnable": true, "sQqWelcomeEnable": true, "sQqLeaveEnable": true, "sJoinEnable": true, "sLeaveEnable": true, "sDeathEnable": true, "sChatEnable": true, "sAdvanceEnable": true }, "cmd": { "welcomeNotice": "欢迎加群~", "leaveNotice": "离开了我们qwq", "cmdStart": "!", "gamePrefixOn": true, "idGamePrefixOn": true, "qqGamePrefix": "群聊", "guildGamePrefix": "频道", "groupNickOn": true, "mcPrefixOn": true, "mcPrefix": "MC", "mcChatPrefixOn": false, "qqChatPrefixOn": false, "mcChatPrefix": "q", "qqChatPrefix": "m" }, "bot": { "tag": "main", "url": "ws://127.0.0.1:8080", "token": "", "botId": "0", "reconnect": true, "maxReconnectAttempts": 3, "timeoutCompensation": 1000 }, "version": 1 }

QianMo0721 avatar Feb 01 '25 09:02 QianMo0721

追加一个 与#132类似, 游戏消息无法转发到群聊,日志啥也没有 { "$schema": "https://raw.githubusercontent.com/LagrangeDev/Lagrange.Core/master/Lagrange.OneBot/Resources/appsettings_schema.json", "Logging": { "LogLevel": { "Default": "Information" } }, "SignServerUrl": "https://sign.lagrangecore.org/api/sign/30366", "SignProxyUrl": "", "MusicSignServerUrl": "", "Account": { "Uin": 0, "Password": "", "Protocol": "Linux", "AutoReconnect": true, "GetOptimumServer": true }, "Message": { "IgnoreSelf": true, "StringPost": false }, "QrCode": { "ConsoleCompatibilityMode": false }, "Implementations": [ { "Type": "ForwardWebSocket", "Host": "127.0.0.1", "Port": 8080, "HeartBeatInterval": 5000, "HeartBeatEnable": true, "AccessToken": "" } ] }

QianMo0721 avatar Feb 01 '25 09:02 QianMo0721

新版本可以试试

cnlimiter avatar Feb 12 '25 16:02 cnlimiter