From c2d315ac8d872198e279f736dffd4d545f5ce0bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=AD=89=E9=A3=8E=E6=9D=A5?= <3139373986@qq.com> Date: Tue, 16 Apr 2024 16:41:50 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=8C=B1=20=E7=BB=86=E8=8A=82=E4=BC=98?= =?UTF-8?q?=E5=8C=96:=E7=82=B9=E8=B5=9E=E5=9B=9E=E5=A4=8D=E6=8D=A2?= =?UTF-8?q?=E8=A1=8C=E7=AC=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/thumbUp.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/thumbUp.js b/apps/thumbUp.js index 34fe019..b11cf5c 100644 --- a/apps/thumbUp.js +++ b/apps/thumbUp.js @@ -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 } }