细节优化

This commit is contained in:
SmallK111407 2024-03-22 21:01:22 +08:00
parent b2516e8b71
commit a9b0387cff
1 changed files with 3 additions and 3 deletions

View File

@ -27,7 +27,7 @@ export class update extends plugin {
fnc: 'update' fnc: 'update'
}, },
{ {
reg: '^#(静默?)全部(强制)?更新$', reg: '^#(静默)?全部(强制)?更新$',
fnc: 'updateAll', fnc: 'updateAll',
permission: 'master' permission: 'master'
} }
@ -182,7 +182,7 @@ export class update extends plugin {
const originalReply = this.reply const originalReply = this.reply
if (/^#静默全部(强制)?更新$/.test(this.e.msg)) { if (/^#静默全部(强制)?更新$/.test(this.e.msg)) {
await this.e.reply(`开始执行静默全部更新...请稍等`) await this.reply(`开始执行静默全部更新,请稍等...`)
this.reply = (message) => { this.reply = (message) => {
this.messages.push(message) this.messages.push(message)
} }
@ -197,7 +197,7 @@ export class update extends plugin {
await this.runUpdate(plu) await this.runUpdate(plu)
} }
await this.e.reply(await common.makeForwardMsg(this.e, this.messages)) await this.reply(await common.makeForwardMsg(this.e, this.messages))
if (this.isUp) { if (this.isUp) {
// await this.reply('即将执行重启,以应用更新') // await this.reply('即将执行重启,以应用更新')