feat: 修复获取是否是艾特小煎蛋的逻辑错误
This commit is contained in:
parent
c298b3780c
commit
ae199d661e
@ -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;
|
||||||
}
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 过滤出非法消息,如果发表情包就直接发回去
|
* 过滤出非法消息,如果发表情包就直接发回去
|
||||||
|
Loading…
x
Reference in New Issue
Block a user