From ae199d661e8ec3bccfcc1d5be0d6b43e0f7fb3bc Mon Sep 17 00:00:00 2001 From: zhaoyingbo Date: Fri, 31 May 2024 01:43:29 +0000 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BF=AE=E5=A4=8D=E8=8E=B7=E5=8F=96?= =?UTF-8?q?=E6=98=AF=E5=90=A6=E6=98=AF=E8=89=BE=E7=89=B9=E5=B0=8F=E7=85=8E?= =?UTF-8?q?=E8=9B=8B=E7=9A=84=E9=80=BB=E8=BE=91=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- routes/bot/eventMsg.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/routes/bot/eventMsg.ts b/routes/bot/eventMsg.ts index eb71a6d..44da930 100644 --- a/routes/bot/eventMsg.ts +++ b/routes/bot/eventMsg.ts @@ -17,11 +17,11 @@ import { */ const getIsP2pOrGroupAtBot = (body: LarkMessageEvent) => { const isP2p = getChatType(body) === "p2p"; - const isAtBot = getMentions(body)?.some( + const isAtBot = getMentions(body)?.some?.( (mention) => mention.name === "小煎蛋" ); return isP2p || isAtBot; -} +}; /** * 过滤出非法消息,如果发表情包就直接发回去