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; -} +}; /** * 过滤出非法消息,如果发表情包就直接发回去