From 8af65405d5ac5d46e9c270edf2c2ded0df20e5c4 Mon Sep 17 00:00:00 2001 From: Rikka-desu <2273379351@qq.com> Date: Sun, 24 Nov 2024 16:34:42 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=88=91=E4=B9=9F=E5=BF=98?= =?UTF-8?q?=E8=AE=B0=E4=BF=AE=E5=A4=8D=E4=BA=86=E4=BB=80=E4=B9=88=E7=9A=84?= =?UTF-8?q?bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nonebot_plugin_marshoai/azure.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nonebot_plugin_marshoai/azure.py b/nonebot_plugin_marshoai/azure.py index 832e390..ed5251b 100644 --- a/nonebot_plugin_marshoai/azure.py +++ b/nonebot_plugin_marshoai/azure.py @@ -178,7 +178,7 @@ async def refresh_data(): @marsho_cmd.handle() async def marsho(target: MsgTarget, event: Event, text: Optional[UniMsg] = None): global target_list - if event.get_message() and (not text or text == config.marshoai_default_name): + if event.get_message().extract_plain_text() and (not text and event.get_message().extract_plain_text() != config.marshoai_default_name): text = event.get_message() if not text: # 发送说明