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