From a50b8bdac53a80f6ba5f36ed730e9f5eda045fee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=A3=8E=E4=B9=8B=E8=BF=B9?= <12026873+wind-trace-typ@user.noreply.gitee.com> Date: Thu, 28 Dec 2023 18:36:47 +0000 Subject: [PATCH 1/2] update apps/xiuxian.js. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 风之迹 <12026873+wind-trace-typ@user.noreply.gitee.com> --- apps/xiuxian.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/apps/xiuxian.js b/apps/xiuxian.js index 2700829..9576dcf 100644 --- a/apps/xiuxian.js +++ b/apps/xiuxian.js @@ -352,7 +352,7 @@ export class xiuxian extends plugin {//修炼 } const json = JSON.parse(fs.readFileSync(dirpath + "/" + filename));//读取文件 if (!json.hasOwnProperty(user_id)||json[user_id].level==0) {//如果文件夹不存在 - if(isqbot.trssbtnqbot(id) === true){ + if(user_id.length>30){ return e.reply([segment.at(e.user_id),"您还是凡人,请通过#修炼和#突破开启你的仙途",btn]); } return e.reply([segment.at(e.user_id),'您还是凡人,请通过#修炼和#突破开启你的仙途']); @@ -398,9 +398,9 @@ export class xiuxian extends plugin {//修炼 } if (cdtime) { if(user_id.length>30){ - return await e.reply([segment.at(e.user_id),`\n用户:${json[user_id].id}\n对不起,修炼失败,还有${cdtime}秒cd`,btn]) + return await e.reply([segment.at(e.user_id),`\n对不起,修炼失败,还有${cdtime}秒cd`,btn]) } - return await e.reply(segment.at(e.user_id),`\n用户:${json[user_id].id}\n对不起,修炼失败,还有${cdtime}秒cd`) + return await e.reply(segment.at(e.user_id),`\n对不起,修炼失败,还有${cdtime}秒cd`) } await this.xxsetCd(cdtime_xiuxian); if (!fs.existsSync(dirpath)) {//如果文件夹不存在 @@ -499,9 +499,9 @@ export class xiuxian extends plugin {//修炼 } if (cdtime){ if(user_id.length>30){ - return await e.reply([segment.at(e.user_id),`\n用户:${json[user_id].id}\n对不起,突破失败,还有${cdtime}秒cd`,btn]) + return await e.reply([segment.at(e.user_id),`\n对不起,突破失败,还有${cdtime}秒cd`,btn]) } - return await e.reply([segment.at(e.user_id),`\n用户:${json[user_id].id}\n对不起,突破失败,还有${cdtime}秒cd`]) + return await e.reply([segment.at(e.user_id),`\n对不起,突破失败,还有${cdtime}秒cd`]) } await this.brsetCd(cdtime_break); if (!fs.existsSync(dirpath)) {//如果文件夹不存在 From 02e0d9783c9aca6798c7f28cba654d25beed4e85 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=A3=8E=E4=B9=8B=E8=BF=B9?= <12026873+wind-trace-typ@user.noreply.gitee.com> Date: Thu, 28 Dec 2023 18:40:33 +0000 Subject: [PATCH 2/2] update apps/xiuxian.js. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 风之迹 <12026873+wind-trace-typ@user.noreply.gitee.com> --- apps/xiuxian.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/xiuxian.js b/apps/xiuxian.js index 9576dcf..6565bd3 100644 --- a/apps/xiuxian.js +++ b/apps/xiuxian.js @@ -441,7 +441,7 @@ export class xiuxian extends plugin {//修炼 } else { json[user_id].experience -= 3 - if(isqbot.trssbtnqbot(id) === true) e.reply([segment.at(user_id), + if(user_id.length>30) e.reply([segment.at(user_id), `\n用户:${json[user_id].id}\n服用失败,由于大量丹毒你损失了3点灵力!\n你的id:${json[user_id].id},\n你的灵力为:${json[user_id].experience}\n你的境界为${json[user_id].levelname}`,btn]); else e.reply([segment.at(user_id), `\n用户:${json[user_id].id}\n服用失败,由于大量丹毒你损失了3点灵力!\n你的id:${json[user_id].id},\n你的灵力为:${json[user_id].experience}\n你的境界为${json[user_id].levelname}`]);