mirror of
https://github.com/ZZZure/ZZZ-Plugin.git
synced 2025-12-17 21:57:44 +00:00
fix
This commit is contained in:
parent
09265d91c5
commit
6f026a8fd3
2 changed files with 7 additions and 7 deletions
|
|
@ -10,15 +10,15 @@ export class RemindManage extends ZZZPlugin {
|
|||
name: '[ZZZ-Plugin]RemindManage',
|
||||
dsc: '提醒功能管理',
|
||||
event: 'message',
|
||||
priority: 40, // 管理插件优先级较高
|
||||
priority: _.get(settings.getConfig('priority'), 'remind', 70),
|
||||
rule: [
|
||||
{
|
||||
reg: `${rulePrefix}(设置|修改)全局提醒时间\\s*(每日\\d+时|每周.\\d+时)`,
|
||||
reg: `${rulePrefix}设置全局提醒时间\\s*(每日\\d+时|每周.\\d+时)`,
|
||||
fnc: 'setGlobalRemind',
|
||||
permission: 'master',
|
||||
},
|
||||
{
|
||||
reg: `${rulePrefix}(设置|修改)个人提醒时间\\s*(每日\\d+时|每周.\\d+时)`,
|
||||
reg: `${rulePrefix}设置个人提醒时间\\s*(每日\\d+时|每周.\\d+时)`,
|
||||
fnc: 'setMyRemindTime',
|
||||
},
|
||||
{
|
||||
|
|
@ -43,7 +43,7 @@ export class RemindManage extends ZZZPlugin {
|
|||
}
|
||||
|
||||
async setGlobalRemind() {
|
||||
const match = this.e.msg.match(/(设置|修改)全局提醒时间\s*(每日\d+时|每周.\d+时)/);
|
||||
const match = this.e.msg.match(/设置全局提醒时间\s*(每日\d+时|每周.\d+时)/);
|
||||
if (!match) return;
|
||||
const remindTime = match[1];
|
||||
|
||||
|
|
@ -53,9 +53,9 @@ export class RemindManage extends ZZZPlugin {
|
|||
}
|
||||
|
||||
async setMyRemindTime() {
|
||||
const match = this.e.msg.match(/(设置|修改)个人提醒时间\s*(每日\d+时|每周.\d+时)/);
|
||||
const match = this.e.msg.match(/设置个人提醒时间\s*(每日\d+时|每周.\d+时)/);
|
||||
if (!match) return;
|
||||
const remindTime = match[2];
|
||||
const remindTime = match[1];
|
||||
|
||||
let userConfig = await this.getUserConfig(this.e.user_id);
|
||||
if (!userConfig) {
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ export class Remind extends ZZZPlugin {
|
|||
name: '[ZZZ-Plugin]Remind',
|
||||
dsc: '式舆防卫战/危局强袭战未完成提醒',
|
||||
event: 'message',
|
||||
priority: _.get(settings.getConfig('priority'), 'remind', 80),
|
||||
priority: _.get(settings.getConfig('priority'), 'remind', 70),
|
||||
rule: [
|
||||
{
|
||||
reg: `${rulePrefix}开启挑战提醒$`,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue