feat: 过滤空消息

This commit is contained in:
手瓜一十雪
2024-12-20 18:58:59 +08:00
parent 15a640d1dc
commit cc9adf9d40

View File

@@ -467,6 +467,10 @@ export class NapCatOneBot11Adapter {
}
private async handleMsg(message: RawMessage, network: Array<AdapterConfigWrap>) {
// 过滤无效消息
if (message.msgType === NTMsgType.KMSGTYPENULL) {
return;
}
try {
const ob11Msg = await this.apis.MsgApi.parseMessageV2(message, this.configLoader.configData.parseMultMsg);
if (ob11Msg) {