Update message.py
This commit is contained in:
parent
2d9afdc4a7
commit
b27b0a95e1
1 changed files with 1 additions and 1 deletions
|
@ -174,7 +174,7 @@ async def parser(msg: MessageSession, require_enable_modules: bool = True, prefi
|
|||
if not module.command_list.set: # 如果没有可用的命令,则展示模块简介
|
||||
if module.desc is not None:
|
||||
desc_ = module.desc
|
||||
if locale_str := re.findall(r'\{(.*)}', desc_):
|
||||
if locale_str := re.findall(r'\{(.*)}', desc_):
|
||||
for l in locale_str:
|
||||
desc_ = desc_.replace(f'{{{l}}}', msg.locale.t(l, fallback_failed_prompt=False))
|
||||
desc = msg.locale.t("parser.module.desc", desc=desc_)
|
||||
|
|
Reference in a new issue