mirror of
https://github.com/TriM-Organization/LiteyukiBot-TriM.git
synced 2024-11-28 16:24:51 +08:00
fix: 事件推送目标的逻辑错误
This commit is contained in:
parent
73b593ff98
commit
5737b75d26
2
.gitignore
vendored
2
.gitignore
vendored
@ -1,5 +1,5 @@
|
||||
.venv/
|
||||
|
||||
.idea/
|
||||
.cache/
|
||||
data/
|
||||
db/
|
||||
|
@ -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
|
||||
|
||||
|
||||
|
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user