feat: Auto remove "UID:" prefix in bind command
This commit is contained in:
parent
ac6e483dd1
commit
9372bdf00e
@ -44,6 +44,9 @@ async def bind(app: Ariadne,
|
||||
|
||||
uid = remove_command_param_placeholder(uid.display)
|
||||
|
||||
# Replace
|
||||
uid = uid.replace("UID:", "")
|
||||
|
||||
if not uid.isdigit() or int(uid) == 0:
|
||||
await app.send_message(sender, MessageChain(f"请输入正确的UID~\n命令示例:{prefix}绑定 114514"), quote=source)
|
||||
return
|
||||
|
Loading…
x
Reference in New Issue
Block a user