阈值命令添加别名

This commit is contained in:
Qian23333 2025-08-16 14:12:40 +08:00
parent 5908cab7af
commit 0945ce35b9
2 changed files with 3 additions and 3 deletions

View file

@ -139,7 +139,7 @@ export class Remind extends ZZZPlugin {
}
async setMyAbyssThreshold() {
const match = this.e.msg.match(/设置式舆阈值\s*(\d+)/);
const match = this.e.msg.match(/设置(?:式舆防卫战|式舆|深渊|防卫战|防卫)阈值\s*(\d+)/);
if (!match) return;
const threshold = Number(match[1]);
@ -164,7 +164,7 @@ export class Remind extends ZZZPlugin {
}
async setMyDeadlyThreshold() {
const match = this.e.msg.match(/设置危局阈值\s*(\d+)/);
const match = this.e.msg.match(/设置(?:危局强袭战|危局|强袭|强袭战)阈值\s*(\d+)/);
if (!match) return;
const threshold = Number(match[1]);

View file

@ -207,7 +207,7 @@ export function supportGuoba() {
{
field: 'remind.globalRemindTime',
label: '全局提醒时间',
bottomHelpMessage: '设置全局默认提醒时间,格式如"每日20时"或"每周一20时"',
bottomHelpMessage: '设置全局默认提醒时间,格式如"每日20时"或"每周一20时40分"',
component: 'Input',
componentProps: {
placeholder: '请输入提醒时间,如"每日20时"',