From e3ec25790f63a82ad5e811e5b41e758d0bef3ae6 Mon Sep 17 00:00:00 2001 From: SnowyFox <156929726+MoeSnowyFox@users.noreply.github.com> Date: Sat, 20 Apr 2024 23:08:07 +0800 Subject: [PATCH 1/2] =?UTF-8?q?:poop:=20=E4=BF=AE=E5=A4=8Dnpm=E5=B8=AE?= =?UTF-8?q?=E5=8A=A9=E7=95=8C=E9=9D=A2=E8=BE=93=E5=87=BA=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- liteyuki/plugins/liteyuki_pacman/npm.py | 21 +++++++++------------ 1 file changed, 9 insertions(+), 12 deletions(-) diff --git a/liteyuki/plugins/liteyuki_pacman/npm.py b/liteyuki/plugins/liteyuki_pacman/npm.py index 206226fa..198c268c 100644 --- a/liteyuki/plugins/liteyuki_pacman/npm.py +++ b/liteyuki/plugins/liteyuki_pacman/npm.py @@ -348,21 +348,19 @@ async def _(result: Arparma, event: T_MessageEvent, bot: T_Bot, npm: Matcher): f"\n{btn_update}" f"\n\n>*{md.escape('npm update')}*\n" f"\n{btn_install_}" - f"\n\n>*{md.escape('npm install ')}*\n" + f"\n\n>*{md.escape('npm install \n" f"\n{btn_uninstall_}" - f"\n\n>*{md.escape('npm uninstall ')}*\n" + f"\n\n>*{md.escape('npm uninstall \n" f"\n{btn_search}" - f"\n\n>*{md.escape('npm search ')}*\n" + f"\n\n>*{md.escape('npm search \n" f"\n{btn_disable_global}" - f"\n\n>*{md.escape('npm disable-global ')}*\n" + f"\n\n>*{md.escape('npm disable-global \n" f"\n{btn_enable_global}" - f"\n\n>*{md.escape('npm enable-global ')}*\n" - f"\n{btn_uninstall_}" - f"\n\n>*{md.escape('npm uninstall ')}*\n" + f"\n\n>*{md.escape('npm enable-global \n" f"\n{btn_disable}" - f"\n\n>*{md.escape('npm disable ')}*\n" + f"\n\n>*{md.escape('npm disable \n" f"\n{btn_enable}" - f"\n\n>*{md.escape('npm enable ')}*\n" + f"\n\n>*{md.escape('npm enable \n" f"\n{btn_list}" f"\n\n>page为页数,num为每页显示数量" f"\n\n>*{md.escape('npm list [page] [num]')}*" @@ -376,16 +374,15 @@ async def _(result: Arparma, event: T_MessageEvent, bot: T_Bot, npm: Matcher): reply = ( f"\n# **{ulang.get('npm.help')}**" f"\n{btn_disable}" - f"\n\n>*{md.escape('npm disable ')}*\n" + f"\n\n>*{md.escape('npm disable \n" f"\n{btn_enable}" - f"\n\n>*{md.escape('npm enable ')}*\n" + f"\n\n>*{md.escape('npm enable \n" f"\n{btn_list}" f"\n\n>page为页数,num为每页显示数量" f"\n\n>*{md.escape('npm list [page] [num]')}*" ) await md.send_md(reply, bot, event=event) - @on_alconna( aliases={"群聊"}, command=Alconna( From e948b9e94e1d39e58658b5255ff03f96f4deda03 Mon Sep 17 00:00:00 2001 From: SnowyFox <156929726+MoeSnowyFox@users.noreply.github.com> Date: Sat, 20 Apr 2024 23:09:22 +0800 Subject: [PATCH 2/2] =?UTF-8?q?:poop:=E8=A1=A5=E5=85=85=E6=96=87=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- liteyuki/resources/lang/zh-CN.lang | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/liteyuki/resources/lang/zh-CN.lang b/liteyuki/resources/lang/zh-CN.lang index 352e7b6e..19a8e5a7 100644 --- a/liteyuki/resources/lang/zh-CN.lang +++ b/liteyuki/resources/lang/zh-CN.lang @@ -99,6 +99,12 @@ npm.plugin_already=插件 {NAME} 已经是 {STATUS} 状态,无需重复操作 npm.toggle_failed=插件 {NAME} {STATUS} 失败: {ERROR} npm.toggle_success=插件 {NAME} {STATUS} 成功 npm.page=第{PAGE}/{TOTAL}页 +npm.update_index=更新插件索引 +npm.list_plugins=插件列表 +npm.disable_session=当前会话停用插件 +npm.enable_session=当前会话启用插件 +npm.help=帮助 +npm.search=搜索 user.profile.edit=修改 user.profile.set=设置 @@ -128,8 +134,4 @@ weather.city_not_found=未找到城市 {CITY} weather.weather_not_found=未找到城市 {CITY} 的天气信息 weather.no_key=未设置天气api key,请在配置文件添加weather-key -npm.update_index=更新插件商店索引 -npm.list_plugins=列出所有插件 -npm.disable_session=当前会话停用插件 -npm.enable_session=当前会话启用插件 -npm.help=帮助 +