mirror of
https://github.com/Jerryplusy/crystelf-plugin.git
synced 2025-12-05 15:41:56 +00:00
fix(ai): 修复空消息导致的格式问题
This commit is contained in:
parent
e0aa49bcea
commit
1abf299a2d
@ -127,7 +127,10 @@ async function extractUserMessage(msg, nickname, e) {
|
||||
let returnMessage = '';
|
||||
if (text.length > 0) {
|
||||
text.forEach((message) => {
|
||||
returnMessage += `[${e.sender?.nickname},id:${e.user_id}]说:${message}\n`;
|
||||
if(message === '') {
|
||||
} else {
|
||||
returnMessage += `[${e.sender?.nickname},id:${e.user_id}]说:${message}\n`
|
||||
}
|
||||
});
|
||||
}
|
||||
if(at.length == 1 && at[0] == e.bot.uin && text.length == 0){
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user