diff --git a/nonebot_plugin_marshoai/azure.py b/nonebot_plugin_marshoai/azure.py index f5f0f42..f1f948d 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()