Archived
1
0
Fork 0

Update message.py

This commit is contained in:
yzhh 2023-05-15 22:26:53 +08:00
parent 0f26778045
commit 883120e2d0

View file

@ -117,6 +117,9 @@ async def parser(msg: MessageSession, require_enable_modules: bool = True, prefi
if in_prefix_list or disable_prefix: # 检查消息前缀 if in_prefix_list or disable_prefix: # 检查消息前缀
if len(display) <= 1 or display[:2] == '~~': # 排除 ~~xxx~~ 的情况 if len(display) <= 1 or display[:2] == '~~': # 排除 ~~xxx~~ 的情况
return return
if in_prefix_list: # 如果在命令前缀列表中,则将此命令前缀移动到列表首位
msg.prefixes.remove(display_prefix)
msg.prefixes.insert(0, display_prefix)
Logger.info( Logger.info(
f'{identify_str} -> [Bot]: {display}') f'{identify_str} -> [Bot]: {display}')