From 5737b75d262d0accc2689eb4586c438d9eea9a62 Mon Sep 17 00:00:00 2001 From: snowyServer Date: Fri, 22 Mar 2024 08:08:48 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BA=8B=E4=BB=B6=E6=8E=A8=E9=80=81?= =?UTF-8?q?=E7=9B=AE=E6=A0=87=E7=9A=84=E9=80=BB=E8=BE=91=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 2 +- src/plugins/liteyuki_plugin_eventpush.py | 2 +- src/plugins/liteyuki_plugin_npm/__init__.py | 9 ++++----- 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/.gitignore b/.gitignore index dab60f02..9fcfdf86 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,5 @@ .venv/ - +.idea/ .cache/ data/ db/ diff --git a/src/plugins/liteyuki_plugin_eventpush.py b/src/plugins/liteyuki_plugin_eventpush.py index 8071cb25..0b823941 100644 --- a/src/plugins/liteyuki_plugin_eventpush.py +++ b/src/plugins/liteyuki_plugin_eventpush.py @@ -106,7 +106,7 @@ async def _(event: T_MessageEvent, bot: T_Bot): push_message = ( f"> From {event.sender.nickname}@{push.source.session_type}.{push.source.session_id}\n> Bot {bot.self_id}\n\n" f"{msg_formatted}") - await send_markdown(push_message, bot2, event=event) + await send_markdown(push_message, bot2, message_type=push.target.session_type, session_id=push.target.session_id) return diff --git a/src/plugins/liteyuki_plugin_npm/__init__.py b/src/plugins/liteyuki_plugin_npm/__init__.py index a70ecd1b..03e4482f 100644 --- a/src/plugins/liteyuki_plugin_npm/__init__.py +++ b/src/plugins/liteyuki_plugin_npm/__init__.py @@ -2,17 +2,16 @@ from nonebot.plugin import PluginMetadata from .manager import * from .installer import * from .helper import * -from .permission import * __author__ = "snowykami" __plugin_meta__ = PluginMetadata( name="轻雪插件管理", description="本地插件管理和插件商店支持,支持启用/停用,安装/卸载插件", usage=( - "lnpm list\n" - "lnpm enable/disable \n" - "lnpm search \n" - "lnpm install/uninstall \n" + "npm list\n" + "npm enable/disable \n" + "npm search \n" + "npm install/uninstall \n" ), type="application", homepage="https://github.com/snowykami/LiteyukiBot",