优化绑定uid

This commit is contained in:
HanaHimeUnica 2024-03-07 13:18:49 +08:00
parent dd4b3523b9
commit 9eb2836769
1 changed files with 2 additions and 2 deletions

View File

@ -85,13 +85,13 @@ export class user extends plugin {
return true return true
} }
if (this.e.msg == "#绑定uid" || this.e.msg == "#绑定UID") { if (/^#?(原神)?绑定uid$/i.test(this.e.msg)) {
this.setContext("saveUid") this.setContext("saveUid")
this.reply("请发送绑定的原神uid", false, { at: true }) this.reply("请发送绑定的原神uid", false, { at: true })
return true return true
} }
if (this.e.msg == "#星铁绑定uid" || this.e.msg == "#星铁绑定UID") { if (/^#?星铁绑定uid$/i.test(this.e.msg)) {
this.setContext("saveSrUid") this.setContext("saveSrUid")
this.reply("请发送绑定的星铁uid", false, { at: true }) this.reply("请发送绑定的星铁uid", false, { at: true })
return true return true