mirror of
https://github.com/ZZZure/ZZZ-Plugin.git
synced 2025-12-17 13:47:44 +00:00
fix
This commit is contained in:
parent
072e02fb03
commit
d6f6365146
1 changed files with 2 additions and 1 deletions
|
|
@ -50,6 +50,7 @@ export class Remind extends ZZZPlugin {
|
||||||
{
|
{
|
||||||
reg: `${rulePrefix}设置全局提醒时间\\s*(每日\\d+时(?:(\\d+)分)?|每周.\\d+时(?:(\\d+)分)?)`,
|
reg: `${rulePrefix}设置全局提醒时间\\s*(每日\\d+时(?:(\\d+)分)?|每周.\\d+时(?:(\\d+)分)?)`,
|
||||||
fnc: 'setGlobalRemindTime',
|
fnc: 'setGlobalRemindTime',
|
||||||
|
permission: 'master',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
reg: `${rulePrefix}全局提醒时间$`,
|
reg: `${rulePrefix}全局提醒时间$`,
|
||||||
|
|
@ -363,7 +364,7 @@ export class Remind extends ZZZPlugin {
|
||||||
this.reply('仅限主人设置', false, { at: true, recallMsg: 100 });
|
this.reply('仅限主人设置', false, { at: true, recallMsg: 100 });
|
||||||
return false;
|
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;
|
if (!match) return;
|
||||||
const globalRemindTime = match[1];
|
const globalRemindTime = match[1];
|
||||||
const minute = Number(match[2]) || Number(match[3]) || 0;
|
const minute = Number(match[2]) || Number(match[3]) || 0;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue