From 5792f798edae11de8bab065f3accd651b603481d Mon Sep 17 00:00:00 2001 From: LWR Date: Tue, 8 Aug 2023 20:49:31 +0800 Subject: [PATCH] fix: Fixed no response when confirming bind with @ --- starbot/commands/builtin/data/bind.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/starbot/commands/builtin/data/bind.py b/starbot/commands/builtin/data/bind.py index 07801be..3910eef 100644 --- a/starbot/commands/builtin/data/bind.py +++ b/starbot/commands/builtin/data/bind.py @@ -81,7 +81,8 @@ async def bind(app: Ariadne, if wait_qq == qq: nonlocal source source = wait_source - if wait_msg.display == f"{prefix}确认绑定" or wait_msg.display == f"{prefix}确定绑定": + msg = wait_msg.exclude(At).display.removeprefix(prefix).strip() + if msg == "确认绑定" or msg == "确定绑定": return True else: return False