From d6f6365146e86be50db4b1966ebc1e0adef9fc61 Mon Sep 17 00:00:00 2001 From: Qian23333 <119576779+Qian23333@users.noreply.github.com> Date: Sat, 16 Aug 2025 15:08:03 +0800 Subject: [PATCH] fix --- apps/remind.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/remind.js b/apps/remind.js index 0e9788d..09e0cfb 100644 --- a/apps/remind.js +++ b/apps/remind.js @@ -50,6 +50,7 @@ export class Remind extends ZZZPlugin { { reg: `${rulePrefix}设置全局提醒时间\\s*(每日\\d+时(?:(\\d+)分)?|每周.\\d+时(?:(\\d+)分)?)`, fnc: 'setGlobalRemindTime', + permission: 'master', }, { reg: `${rulePrefix}全局提醒时间$`, @@ -363,7 +364,7 @@ export class Remind extends ZZZPlugin { this.reply('仅限主人设置', false, { at: true, recallMsg: 100 }); return false; } - const match = this.e.msg.match(/设置全局提醒时间\s*(每日\d+时(?:(\d+)分)?)|每周.\d+时(?:(\d+)分)?))/); + const match = this.e.msg.match(/设置全局提醒时间\s*(每日\d+时(?:(\d+)分)?|每周.\d+时(?:(\d+)分)?)/); if (!match) return; const globalRemindTime = match[1]; const minute = Number(match[2]) || Number(match[3]) || 0;