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() {
|
||||
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]);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue