mirror of
https://github.com/LiteyukiStudio/nonebot-plugin-marshoai.git
synced 2024-11-27 07:15:03 +08:00
修复了输入marsho会触发的bug
This commit is contained in:
parent
62f49eb381
commit
677fa98a3f
@ -178,8 +178,9 @@ async def refresh_data():
|
|||||||
@marsho_cmd.handle()
|
@marsho_cmd.handle()
|
||||||
async def marsho(target: MsgTarget, event: Event, text: Optional[UniMsg] = None):
|
async def marsho(target: MsgTarget, event: Event, text: Optional[UniMsg] = None):
|
||||||
global target_list
|
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()
|
text = event.get_message()
|
||||||
|
print(text)
|
||||||
if not text:
|
if not text:
|
||||||
# 发送说明
|
# 发送说明
|
||||||
await UniMessage(metadata.usage + "\n当前使用的模型:" + model_name).send()
|
await UniMessage(metadata.usage + "\n当前使用的模型:" + model_name).send()
|
||||||
|
Loading…
Reference in New Issue
Block a user