🌱 细节优化:点赞回复换行符

This commit is contained in:
等风来
2024-04-16 16:41:50 +08:00
parent be1bb7b54d
commit c2d315ac8d

View File

@@ -101,10 +101,10 @@ function generateFailMsg(doType, originalMsg) {
async function generateResponseMsg(isSuccess, successMsg, failsMsg, avatar, successFn) {
if (isSuccess) {
const imageSegment = segment.image((await memes[successFn](avatar)))
return [ `\n${successMsg}`, imageSegment ]
return [ `${successMsg}`, imageSegment ] // Removed the leading newline character
} else {
const imageSegment = segment.image((await memes.crawl(avatar)))
if (failsMsg == "return") return []
return [ `\n${failsMsg}`, imageSegment ]
return [ `${failsMsg}`, imageSegment ] // Removed the leading newline character
}
}