From b57a7e2103a960eba83c95e7d98b793c6a5636d2 Mon Sep 17 00:00:00 2001 From: SmallK111407 <3399280843@qq.com> Date: Sat, 13 Apr 2024 19:40:12 +0800 Subject: [PATCH] =?UTF-8?q?`#=E9=9D=99=E9=BB=98=E5=85=A8=E9=83=A8=E6=9B=B4?= =?UTF-8?q?=E6=96=B0`=20=E7=BB=86=E8=8A=82=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugins/other/update.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/plugins/other/update.js b/plugins/other/update.js index ad3ceb8..8f99ece 100644 --- a/plugins/other/update.js +++ b/plugins/other/update.js @@ -181,7 +181,8 @@ export class update extends plugin { const originalReply = this.reply - if (/^#静默全部(强制)?更新$/.test(this.e.msg)) { + const testReg = /^#静默全部(强制)?更新$/.test(this.e.msg) + if (testReg) { await this.reply(`开始执行静默全部更新,请稍等...`) this.reply = (message) => { this.messages.push(message) @@ -197,7 +198,9 @@ export class update extends plugin { await this.runUpdate(plu) } - await this.reply(await common.makeForwardMsg(this.e, this.messages)) + if (testReg) { + await this.reply(await common.makeForwardMsg(this.e, this.messages)) + } if (this.isUp) { // await this.reply('即将执行重启,以应用更新')