mirror of
https://github.com/Jerryplusy/crystelf-plugin.git
synced 2025-12-05 15:41:56 +00:00
fix(core): 修正仅@机器人但无文本时返回空数组的逻辑
This commit is contained in:
parent
a9a494ddc1
commit
145a352f01
@ -130,7 +130,7 @@ async function extractUserMessage(msg, nickname, e) {
|
|||||||
returnMessage += `[${e.sender?.nickname},id:${e.user_id}]说:${message}\n`;
|
returnMessage += `[${e.sender?.nickname},id:${e.user_id}]说:${message}\n`;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
if(at.length == 1 && at[0] == e.bot.uin){
|
if(at.length == 1 && at[0] == e.bot.uin && text.length == 0){
|
||||||
return [];
|
return [];
|
||||||
}
|
}
|
||||||
if (at.length > 0) {
|
if (at.length > 0) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user