插件管理:修复输出功能误循环的问题

统计信息:兼容性提高
This commit is contained in:
Eilles
2026-05-10 03:38:08 +08:00
parent 0ade85bd49
commit d29efcbc9e
3 changed files with 14 additions and 14 deletions
+1 -1
View File
@@ -521,7 +521,7 @@ async def _(result: Arparma, event: T_MessageEvent, bot: T_Bot, npm: Matcher):
reply += "\n>\t{}\n".format(storePlugin.name) reply += "\n>\t{}\n".format(storePlugin.name)
await npm.send(reply) await npm.send(reply)
else: else:
if await SUPERUSER(bot, event): if await SUPERUSER(bot, event):
@@ -80,7 +80,7 @@ stat_msg = on_alconna(
@stat_msg.assign("message") @stat_msg.assign("message")
async def _(result: Arparma, event: T_MessageEvent, bot: Bot): async def _(result: Arparma, event: T_MessageEvent, bot: Bot):
ulang = Language(event_utils.get_user_id(event)) ulang = Language(str(event_utils.get_user_id(event)))
try: try:
duration = convert_time_to_seconds( duration = convert_time_to_seconds(
result.other_args.get("duration", "2d") result.other_args.get("duration", "2d")
@@ -123,7 +123,7 @@ async def _(result: Arparma, event: T_MessageEvent, bot: Bot):
@stat_msg.assign("rank") @stat_msg.assign("rank")
async def _(result: Arparma, event: T_MessageEvent, bot: Bot): async def _(result: Arparma, event: T_MessageEvent, bot: Bot):
ulang = Language(event_utils.get_user_id(event)) ulang = Language(str(event_utils.get_user_id(event)))
rank_type = "user" rank_type = "user"
duration = convert_time_to_seconds(result.other_args.get("duration", "1d")) duration = convert_time_to_seconds(result.other_args.get("duration", "1d"))
if result.subcommands.get("rank").options.get("user"): if result.subcommands.get("rank").options.get("user"):
+10 -10
View File
@@ -66,14 +66,14 @@ npm.total=合 {TOTAL}
npm.help=师 npm.help=师
npm.usage=问 npm.usage=问
npm.description=答 npm.description=答
npm.disable= npm.disable=
npm.disable_global=皆 npm.disable_global=皆
npm.enable= npm.enable=
npm.enable_global=皆 npm.enable_global=皆
npm.install=置 npm.install=置
npm.uninstall= npm.uninstall=
npm.installing=乃置 {NAME} npm.installing=乃置 {NAME}
npm.cannot_uninstall=未 npm.cannot_uninstall=未
npm.no_description=无答 npm.no_description=无答
npm.store_update_success=件阁方新 npm.store_update_success=件阁方新
npm.store_update_failed=件阁无以新 npm.store_update_failed=件阁无以新
@@ -82,8 +82,8 @@ npm.search_no_result=未果
npm.too_many_results=所得之多,为数 {HIDE_NUM} 尽隐,求则号精 npm.too_many_results=所得之多,为数 {HIDE_NUM} 尽隐,求则号精
npm.install_success={NAME} 方置 npm.install_success={NAME} 方置
npm.install_failed={NAME} 无以置,求讯文观其始末,未解则取 {HOMEPAGE} 而从师 npm.install_failed={NAME} 无以置,求讯文观其始末,未解则取 {HOMEPAGE} 而从师
npm.uninstall_success={NAME} 方,次复启以毕功 npm.uninstall_success={NAME} 方,次复启以毕功
npm.uninstall_failed={NAME} 无以 npm.uninstall_failed={NAME} 无以
npm.load_failed={NAME} 无以誊,或求讯文观始末,或查所依偏离否,未解则取 {HOMEPAGE} 而从师 npm.load_failed={NAME} 无以誊,或求讯文观始末,或查所依偏离否,未解则取 {HOMEPAGE} 而从师
npm.plugin_not_found=阁内无件曰 {NAME} 者 npm.plugin_not_found=阁内无件曰 {NAME} 者
npm.plugin_not_installed={NAME} 未置 npm.plugin_not_installed={NAME} 未置
@@ -102,8 +102,8 @@ npm.page=第 {PAGE} 之于 {TOTAL} 页
npm.cannot=不可 npm.cannot=不可
npm.update_index=阁引 npm.update_index=阁引
npm.list_plugins=件目 npm.list_plugins=件目
npm.disable_session=是处 npm.disable_session=是处
npm.enable_session=是处 npm.enable_session=是处
npm.search=索 npm.search=索
user.profile.edit=易 user.profile.edit=易