feat: 修复获取是否是艾特小煎蛋的逻辑错误
All checks were successful
Egg CI/CD / build-image (push) Successful in 21s
Egg CI/CD / deploy (push) Successful in 22s

This commit is contained in:
zhaoyingbo 2024-05-31 01:43:29 +00:00
parent c298b3780c
commit ae199d661e

View File

@ -17,11 +17,11 @@ import {
*/ */
const getIsP2pOrGroupAtBot = (body: LarkMessageEvent) => { const getIsP2pOrGroupAtBot = (body: LarkMessageEvent) => {
const isP2p = getChatType(body) === "p2p"; const isP2p = getChatType(body) === "p2p";
const isAtBot = getMentions(body)?.some( const isAtBot = getMentions(body)?.some?.(
(mention) => mention.name === "小煎蛋" (mention) => mention.name === "小煎蛋"
); );
return isP2p || isAtBot; return isP2p || isAtBot;
} };
/** /**
* *