From cc9adf9d4082335826fcb2f745b21b442420b200 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=89=8B=E7=93=9C=E4=B8=80=E5=8D=81=E9=9B=AA?= Date: Fri, 20 Dec 2024 18:58:59 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E8=BF=87=E6=BB=A4=E7=A9=BA=E6=B6=88?= =?UTF-8?q?=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/onebot/index.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/onebot/index.ts b/src/onebot/index.ts index 5708bad5..4da66848 100644 --- a/src/onebot/index.ts +++ b/src/onebot/index.ts @@ -467,6 +467,10 @@ export class NapCatOneBot11Adapter { } private async handleMsg(message: RawMessage, network: Array) { + // 过滤无效消息 + if (message.msgType === NTMsgType.KMSGTYPENULL) { + return; + } try { const ob11Msg = await this.apis.MsgApi.parseMessageV2(message, this.configLoader.configData.parseMultMsg); if (ob11Msg) {