parent
ca78e42bbe
commit
f0c88f7088
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue