fix: 事件推送目标的逻辑错误

This commit is contained in:
远野千束 2024-03-22 08:08:48 +08:00
parent 73b593ff98
commit 5737b75d26
3 changed files with 6 additions and 7 deletions

2
.gitignore vendored
View File

@ -1,5 +1,5 @@
.venv/
.idea/
.cache/
data/
db/

View File

@ -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

View File

@ -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 <plugin_name>\n"
"lnpm search <keywords...>\n"
"lnpm install/uninstall <plugin_name>\n"
"npm list\n"
"npm enable/disable <plugin_name>\n"
"npm search <keywords...>\n"
"npm install/uninstall <plugin_name>\n"
),
type="application",
homepage="https://github.com/snowykami/LiteyukiBot",