mirror of
https://github.com/nonebot/nonebot2.git
synced 2024-11-28 05:27:30 +08:00
commit
5db819738e
@ -214,5 +214,21 @@
|
||||
"desc": "基于 import hook 的插件管理",
|
||||
"author": "Jigsaw111",
|
||||
"repo": "Jigsaw111/nonebot_plugin_manager"
|
||||
},
|
||||
{
|
||||
"id": "nonebot_plugin_analysis_bilibili",
|
||||
"link": "nonebot-plugin-analysis-bilibili",
|
||||
"name": "bilibili视频、番剧解析",
|
||||
"desc": "自动解析bilibili视频、番剧解析",
|
||||
"author": "mengshouer",
|
||||
"repo": "mengshouer/nonebot_plugin_analysis_bilibili"
|
||||
},
|
||||
{
|
||||
"id": "nonebot_plugin_localstore",
|
||||
"link": "nonebot-plugin-localstore",
|
||||
"name": "本地数据存储",
|
||||
"desc": "存储插件数据至本地文件",
|
||||
"author": "yanyongyu",
|
||||
"repo": "nonebot/plugin-localstore"
|
||||
}
|
||||
]
|
@ -11,7 +11,7 @@ from nonebot.message import handle_event
|
||||
from nonebot.utils import escape_tag, logger_wrapper
|
||||
|
||||
from .event import Event, GroupMessage, MessageEvent, MessageSource
|
||||
from .message import MessageType
|
||||
from .message import MessageType, MessageSegment
|
||||
|
||||
if TYPE_CHECKING:
|
||||
from .bot import Bot
|
||||
@ -138,6 +138,8 @@ def process_at(bot: "Bot", event: GroupMessage) -> GroupMessage:
|
||||
event.to_me = True
|
||||
else:
|
||||
event.message_chain.insert(0, at)
|
||||
if not event.message_chain:
|
||||
event.message_chain.append(MessageSegment.plain(''))
|
||||
return event
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user