From 1a1acdc3c995f1744e791f9f12a15e17add6a4b9 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: Tue, 6 Aug 2024 11:40:36 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E8=BD=AC=E5=8F=91=E7=9D=80=E8=89=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/onebot11/log.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/onebot11/log.ts b/src/onebot11/log.ts index d92c0f53..c6a9704f 100644 --- a/src/onebot11/log.ts +++ b/src/onebot11/log.ts @@ -66,6 +66,9 @@ export async function logMessage(ob11Message: OB11Message) { else if (segment.type === 'video') { msgParts.push(spSegColor(`[视频|${segment.data.url}]`)); } + else if (segment.type === 'forward') { + msgParts.push(spSegColor(`[转发|${JSON.stringify(segment.data.id)}]`)); + } else { msgParts.push(spSegColor(`[未实现|${JSON.stringify(segment)}]`)); }