mirror of
https://github.com/LiteyukiStudio/nonebot-plugin-marshoai.git
synced 2024-11-26 23:05:04 +08:00
修复我也忘记修复了什么的bug
This commit is contained in:
parent
2b4d8a939a
commit
8af65405d5
@ -178,7 +178,7 @@ 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 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()
|
text = event.get_message()
|
||||||
if not text:
|
if not text:
|
||||||
# 发送说明
|
# 发送说明
|
||||||
|
Loading…
Reference in New Issue
Block a user