mirror of
https://github.com/TriM-Organization/LiteyukiBot-TriM.git
synced 2024-12-01 09:44:44 +08:00
fix: 事件推送目标的逻辑错误
This commit is contained in:
parent
73b593ff98
commit
5737b75d26
2
.gitignore
vendored
2
.gitignore
vendored
@ -1,5 +1,5 @@
|
|||||||
.venv/
|
.venv/
|
||||||
|
.idea/
|
||||||
.cache/
|
.cache/
|
||||||
data/
|
data/
|
||||||
db/
|
db/
|
||||||
|
@ -106,7 +106,7 @@ async def _(event: T_MessageEvent, bot: T_Bot):
|
|||||||
push_message = (
|
push_message = (
|
||||||
f"> From {event.sender.nickname}@{push.source.session_type}.{push.source.session_id}\n> Bot {bot.self_id}\n\n"
|
f"> From {event.sender.nickname}@{push.source.session_type}.{push.source.session_id}\n> Bot {bot.self_id}\n\n"
|
||||||
f"{msg_formatted}")
|
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
|
return
|
||||||
|
|
||||||
|
|
||||||
|
@ -2,17 +2,16 @@ from nonebot.plugin import PluginMetadata
|
|||||||
from .manager import *
|
from .manager import *
|
||||||
from .installer import *
|
from .installer import *
|
||||||
from .helper import *
|
from .helper import *
|
||||||
from .permission import *
|
|
||||||
|
|
||||||
__author__ = "snowykami"
|
__author__ = "snowykami"
|
||||||
__plugin_meta__ = PluginMetadata(
|
__plugin_meta__ = PluginMetadata(
|
||||||
name="轻雪插件管理",
|
name="轻雪插件管理",
|
||||||
description="本地插件管理和插件商店支持,支持启用/停用,安装/卸载插件",
|
description="本地插件管理和插件商店支持,支持启用/停用,安装/卸载插件",
|
||||||
usage=(
|
usage=(
|
||||||
"lnpm list\n"
|
"npm list\n"
|
||||||
"lnpm enable/disable <plugin_name>\n"
|
"npm enable/disable <plugin_name>\n"
|
||||||
"lnpm search <keywords...>\n"
|
"npm search <keywords...>\n"
|
||||||
"lnpm install/uninstall <plugin_name>\n"
|
"npm install/uninstall <plugin_name>\n"
|
||||||
),
|
),
|
||||||
type="application",
|
type="application",
|
||||||
homepage="https://github.com/snowykami/LiteyukiBot",
|
homepage="https://github.com/snowykami/LiteyukiBot",
|
||||||
|
Loading…
Reference in New Issue
Block a user