From f0c88f70882b170b5faa8925a0d513cd841eec14 Mon Sep 17 00:00:00 2001 From: Admilk Date: Sun, 25 Feb 2024 12:13:56 +0000 Subject: [PATCH] =?UTF-8?q?=E5=8C=B9=E9=85=8D=E4=BB=BB=E6=84=8F=E5=A4=A7?= =?UTF-8?q?=E5=B0=8F=E5=86=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Admilk --- plugins/genshin/apps/user.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/plugins/genshin/apps/user.js b/plugins/genshin/apps/user.js index 279990f..50ad1af 100644 --- a/plugins/genshin/apps/user.js +++ b/plugins/genshin/apps/user.js @@ -38,19 +38,19 @@ export class user extends plugin { fnc: 'delCk' }, { - reg: '^#?(原神|星铁)?(删除|解绑)(uid|UID)\\s*[0-9]{1,2}$', + reg: /^#?(原神|星铁)?(删除|解绑)(uid)\\s*[0-9]{1,2}$/i, fnc: 'delUid' }, { - reg: '^#(原神|星铁)?绑定(uid|UID)?\\s*([1-9]|18)[0-9]{8}$', + reg: /^#(原神|星铁)?绑定(uid)?\\s*([1-9]|18)[0-9]{8}$/i, fnc: 'bingUid' }, { - reg: '^#(原神|星铁)?(我的)?(uid|UID)[0-9]{0,2}$', + reg: /^#(原神|星铁)?(我的)?(uid)[0-9]{0,2}$/i, fnc: 'showUid' }, { - reg: '^#\\s*(检查|我的)*[Cc](oo)?[Kk](ie)?(状态)*$', + reg: /^#\\s*(检查|我的)*c(oo)?k(ie)?(状态)*$/i, fnc: 'checkCkStatus' }, { @@ -85,13 +85,13 @@ export class user extends plugin { return true } - if (this.e.msg == "#绑定uid" || this.e.msg == "#绑定UID") { +if (this.e.msg.toLowerCase() === "#绑定uid") { this.setContext("saveUid") this.reply("请发送绑定的原神uid", false, { at: true }) return true } - if (this.e.msg == "#星铁绑定uid" || this.e.msg == "#星铁绑定UID") { +if (this.e.msg.toLowerCase() === "#星铁绑定uid") { this.setContext("saveSrUid") this.reply("请发送绑定的星铁uid", false, { at: true }) return true