Skip to content

Commit

Permalink
u
Browse files Browse the repository at this point in the history
  • Loading branch information
cloudw233 committed Jan 4, 2025
1 parent a64b3f2 commit 32bafca
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion core/locales/zh_cn.json
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@
"parser.matched.but_try_again_later": "请稍后再试。",
"parser.module.desc": "介绍:\n${desc}",
"parser.module.disabled.prompt": "“${module}”模块未开启,请使用“${prefix}enable ${module}”开启本模块。",
"parser.module.disabled.to_enable": "是否开启并继续执行?${confirm}",
"parser.module.disabled.to_enable": "是否开启并继续执行?",
"parser.module.unloaded": "“${module}”模块当前未加载,请联系开发者处理。",
"parser.superuser.permission.denied": "你没有使用该命令的权限。",
"petal.message.cost": "(使用了 ${amount} 片花瓣)",
Expand Down
2 changes: 1 addition & 1 deletion core/parser/message.py
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ async def parser(msg: Bot.MessageSession,
msg.locale.t("parser.module.disabled.prompt", module=command_first_word,
prefix=msg.prefixes[0]))
if all([await msg.check_permission(),
await msg.wait_confirm(msg.locale.t("parser.module.disabled.to_enable", confirm = msg.locale.t("message.wait.prompt.confirm")), quote=False),
await msg.wait_confirm(msg.locale.t("parser.module.disabled.to_enable"), quote=False),
msg.data.enable(command_first_word)]):
await msg.send_message(msg.locale.t("core.message.module.enable.success", module=command_first_word))
else:
Expand Down

0 comments on commit 32bafca

Please sign in to comment.