This commit is contained in:
千奈千祁 2024-04-14 09:46:11 +08:00
commit d2e2aadcc7
1 changed files with 5 additions and 2 deletions

View File

@ -181,7 +181,8 @@ export class update extends plugin {
const originalReply = this.reply const originalReply = this.reply
if (/^#静默全部(强制)?更新$/.test(this.e.msg)) { const testReg = /^#静默全部(强制)?更新$/.test(this.e.msg)
if (testReg) {
await this.reply(`开始执行静默全部更新,请稍等...`) await this.reply(`开始执行静默全部更新,请稍等...`)
this.reply = (message) => { this.reply = (message) => {
this.messages.push(message) this.messages.push(message)
@ -197,7 +198,9 @@ export class update extends plugin {
await this.runUpdate(plu) 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) { if (this.isUp) {
// await this.reply('即将执行重启,以应用更新') // await this.reply('即将执行重启,以应用更新')