Update message.py
This commit is contained in:
parent
0f26778045
commit
883120e2d0
1 changed files with 3 additions and 0 deletions
|
@ -117,6 +117,9 @@ async def parser(msg: MessageSession, require_enable_modules: bool = True, prefi
|
|||
if in_prefix_list or disable_prefix: # 检查消息前缀
|
||||
if len(display) <= 1 or display[:2] == '~~': # 排除 ~~xxx~~ 的情况
|
||||
return
|
||||
if in_prefix_list: # 如果在命令前缀列表中,则将此命令前缀移动到列表首位
|
||||
msg.prefixes.remove(display_prefix)
|
||||
msg.prefixes.insert(0, display_prefix)
|
||||
|
||||
Logger.info(
|
||||
f'{identify_str} -> [Bot]: {display}')
|
||||
|
|
Reference in a new issue