From 677fa98a3f62f318718bf92c62f9668e90c5ddf2 Mon Sep 17 00:00:00 2001 From: Rikka-desu <2273379351@qq.com> Date: Sun, 24 Nov 2024 16:03:38 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=BA=86=E8=BE=93=E5=85=A5ma?= =?UTF-8?q?rsho=E4=BC=9A=E8=A7=A6=E5=8F=91=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nonebot_plugin_marshoai/azure.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nonebot_plugin_marshoai/azure.py b/nonebot_plugin_marshoai/azure.py index f5f0f42d..f1f948da 100644 --- a/nonebot_plugin_marshoai/azure.py +++ b/nonebot_plugin_marshoai/azure.py @@ -178,8 +178,9 @@ 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: + if event.get_message() and (not text and text == config.marshoai_default_name): text = event.get_message() + print(text) if not text: # 发送说明 await UniMessage(metadata.usage + "\n当前使用的模型:" + model_name).send()