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",