Merge pull request #34 from MoeSnowyFox/main

💩修复npm帮助部分文本错误
This commit is contained in:
Snowykami 2024-04-21 01:10:08 +08:00 committed by GitHub
commit 34ba5ffde3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 16 additions and 17 deletions

View File

@ -348,21 +348,19 @@ async def _(result: Arparma, event: T_MessageEvent, bot: T_Bot, npm: Matcher):
f"\n{btn_update}" f"\n{btn_update}"
f"\n\n>*{md.escape('npm update')}*\n" f"\n\n>*{md.escape('npm update')}*\n"
f"\n{btn_install_}" f"\n{btn_install_}"
f"\n\n>*{md.escape('npm install <plugin_name>')}*\n" f"\n\n>*{md.escape('npm install <plugin_name')}*>\n"
f"\n{btn_uninstall_}" f"\n{btn_uninstall_}"
f"\n\n>*{md.escape('npm uninstall <plugin_name>')}*\n" f"\n\n>*{md.escape('npm uninstall <plugin_name')}*>\n"
f"\n{btn_search}" f"\n{btn_search}"
f"\n\n>*{md.escape('npm search <keywords...>')}*\n" f"\n\n>*{md.escape('npm search <keywords...')}*>\n"
f"\n{btn_disable_global}" f"\n{btn_disable_global}"
f"\n\n>*{md.escape('npm disable-global <plugin_name>')}*\n" f"\n\n>*{md.escape('npm disable-global <plugin_name')}*>\n"
f"\n{btn_enable_global}" f"\n{btn_enable_global}"
f"\n\n>*{md.escape('npm enable-global <plugin_name>')}*\n" f"\n\n>*{md.escape('npm enable-global <plugin_name')}*>\n"
f"\n{btn_uninstall_}"
f"\n\n>*{md.escape('npm uninstall <plugin_name>')}*\n"
f"\n{btn_disable}" f"\n{btn_disable}"
f"\n\n>*{md.escape('npm disable <plugin_name>')}*\n" f"\n\n>*{md.escape('npm disable <plugin_name')}*>\n"
f"\n{btn_enable}" f"\n{btn_enable}"
f"\n\n>*{md.escape('npm enable <plugin_name>')}*\n" f"\n\n>*{md.escape('npm enable <plugin_name')}*>\n"
f"\n{btn_list}" f"\n{btn_list}"
f"\n\n>page为页数num为每页显示数量" f"\n\n>page为页数num为每页显示数量"
f"\n\n>*{md.escape('npm list [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 = ( reply = (
f"\n# **{ulang.get('npm.help')}**" f"\n# **{ulang.get('npm.help')}**"
f"\n{btn_disable}" f"\n{btn_disable}"
f"\n\n>*{md.escape('npm disable <plugin_name>')}*\n" f"\n\n>*{md.escape('npm disable <plugin_name')}*>\n"
f"\n{btn_enable}" f"\n{btn_enable}"
f"\n\n>*{md.escape('npm enable <plugin_name>')}*\n" f"\n\n>*{md.escape('npm enable <plugin_name')}*>\n"
f"\n{btn_list}" f"\n{btn_list}"
f"\n\n>page为页数num为每页显示数量" f"\n\n>page为页数num为每页显示数量"
f"\n\n>*{md.escape('npm list [page] [num]')}*" f"\n\n>*{md.escape('npm list [page] [num]')}*"
) )
await md.send_md(reply, bot, event=event) await md.send_md(reply, bot, event=event)
@on_alconna( @on_alconna(
aliases={"群聊"}, aliases={"群聊"},
command=Alconna( command=Alconna(

View File

@ -99,6 +99,12 @@ npm.plugin_already=插件 {NAME} 已经是 {STATUS} 状态,无需重复操作
npm.toggle_failed=插件 {NAME} {STATUS} 失败: {ERROR} npm.toggle_failed=插件 {NAME} {STATUS} 失败: {ERROR}
npm.toggle_success=插件 {NAME} {STATUS} 成功 npm.toggle_success=插件 {NAME} {STATUS} 成功
npm.page=第{PAGE}/{TOTAL}页 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.edit=修改
user.profile.set=设置 user.profile.set=设置
@ -128,8 +134,4 @@ weather.city_not_found=未找到城市 {CITY}
weather.weather_not_found=未找到城市 {CITY} 的天气信息 weather.weather_not_found=未找到城市 {CITY} 的天气信息
weather.no_key=未设置天气api key请在配置文件添加weather-key weather.no_key=未设置天气api key请在配置文件添加weather-key
npm.update_index=更新插件商店索引
npm.list_plugins=列出所有插件
npm.disable_session=当前会话停用插件
npm.enable_session=当前会话启用插件
npm.help=帮助