优化绑定uid
This commit is contained in:
		
							parent
							
								
									dd4b3523b9
								
							
						
					
					
						commit
						9eb2836769
					
				|  | @ -85,13 +85,13 @@ export class user extends plugin { | |||
|       return true | ||||
|     } | ||||
| 
 | ||||
|     if (this.e.msg == "#绑定uid" || this.e.msg == "#绑定UID") { | ||||
|     if (/^#?(原神)?绑定uid$/i.test(this.e.msg)) { | ||||
|       this.setContext("saveUid") | ||||
|       this.reply("请发送绑定的原神uid", false, { at: true }) | ||||
|       return true | ||||
|     } | ||||
| 
 | ||||
|     if (this.e.msg == "#星铁绑定uid" || this.e.msg == "#星铁绑定UID") { | ||||
|     if (/^#?星铁绑定uid$/i.test(this.e.msg)) { | ||||
|       this.setContext("saveSrUid") | ||||
|       this.reply("请发送绑定的星铁uid", false, { at: true }) | ||||
|       return true | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue