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
51801a7b9c
commit
09265d91c5
1 changed files with 4 additions and 4 deletions
|
|
@ -13,7 +13,7 @@ export class RemindManage extends ZZZPlugin {
|
||||||
priority: 40, // 管理插件优先级较高
|
priority: 40, // 管理插件优先级较高
|
||||||
rule: [
|
rule: [
|
||||||
{
|
{
|
||||||
reg: `${rulePrefix}设置全局提醒时间\\s*(每日\\d+时|每周.\\d+时)`,
|
reg: `${rulePrefix}(设置|修改)全局提醒时间\\s*(每日\\d+时|每周.\\d+时)`,
|
||||||
fnc: 'setGlobalRemind',
|
fnc: 'setGlobalRemind',
|
||||||
permission: 'master',
|
permission: 'master',
|
||||||
},
|
},
|
||||||
|
|
@ -43,7 +43,7 @@ export class RemindManage extends ZZZPlugin {
|
||||||
}
|
}
|
||||||
|
|
||||||
async setGlobalRemind() {
|
async setGlobalRemind() {
|
||||||
const match = this.e.msg.match(/(每日\d+时|每周.\d+时)/);
|
const match = this.e.msg.match(/(设置|修改)全局提醒时间\s*(每日\d+时|每周.\d+时)/);
|
||||||
if (!match) return;
|
if (!match) return;
|
||||||
const remindTime = match[1];
|
const remindTime = match[1];
|
||||||
|
|
||||||
|
|
@ -53,9 +53,9 @@ export class RemindManage extends ZZZPlugin {
|
||||||
}
|
}
|
||||||
|
|
||||||
async setMyRemindTime() {
|
async setMyRemindTime() {
|
||||||
const match = this.e.msg.match(/(每日\d+时|每周.\d+时)/);
|
const match = this.e.msg.match(/(设置|修改)个人提醒时间\s*(每日\d+时|每周.\d+时)/);
|
||||||
if (!match) return;
|
if (!match) return;
|
||||||
const remindTime = match[1];
|
const remindTime = match[2];
|
||||||
|
|
||||||
let userConfig = await this.getUserConfig(this.e.user_id);
|
let userConfig = await this.getUserConfig(this.e.user_id);
|
||||||
if (!userConfig) {
|
if (!userConfig) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue