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