mirror of
https://github.com/ZZZure/ZZZ-Plugin.git
synced 2025-12-17 13:47:44 +00:00
阈值命令添加别名
This commit is contained in:
parent
5908cab7af
commit
0945ce35b9
2 changed files with 3 additions and 3 deletions
|
|
@ -139,7 +139,7 @@ export class Remind extends ZZZPlugin {
|
||||||
}
|
}
|
||||||
|
|
||||||
async setMyAbyssThreshold() {
|
async setMyAbyssThreshold() {
|
||||||
const match = this.e.msg.match(/设置式舆阈值\s*(\d+)/);
|
const match = this.e.msg.match(/设置(?:式舆防卫战|式舆|深渊|防卫战|防卫)阈值\s*(\d+)/);
|
||||||
if (!match) return;
|
if (!match) return;
|
||||||
const threshold = Number(match[1]);
|
const threshold = Number(match[1]);
|
||||||
|
|
||||||
|
|
@ -164,7 +164,7 @@ export class Remind extends ZZZPlugin {
|
||||||
}
|
}
|
||||||
|
|
||||||
async setMyDeadlyThreshold() {
|
async setMyDeadlyThreshold() {
|
||||||
const match = this.e.msg.match(/设置危局阈值\s*(\d+)/);
|
const match = this.e.msg.match(/设置(?:危局强袭战|危局|强袭|强袭战)阈值\s*(\d+)/);
|
||||||
if (!match) return;
|
if (!match) return;
|
||||||
const threshold = Number(match[1]);
|
const threshold = Number(match[1]);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -207,7 +207,7 @@ export function supportGuoba() {
|
||||||
{
|
{
|
||||||
field: 'remind.globalRemindTime',
|
field: 'remind.globalRemindTime',
|
||||||
label: '全局提醒时间',
|
label: '全局提醒时间',
|
||||||
bottomHelpMessage: '设置全局默认提醒时间,格式如"每日20时"或"每周一20时"',
|
bottomHelpMessage: '设置全局默认提醒时间,格式如"每日20时"或"每周一20时40分"',
|
||||||
component: 'Input',
|
component: 'Input',
|
||||||
componentProps: {
|
componentProps: {
|
||||||
placeholder: '请输入提醒时间,如"每日20时"',
|
placeholder: '请输入提醒时间,如"每日20时"',
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue