mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-06-09 07:26:48 +00:00
add MessageAction
This commit is contained in:
@@ -517,10 +517,10 @@ class MessageChain(ChainBase):
|
||||
plugin_id, content = callback_data.split("|", 1)
|
||||
# 广播给插件处理
|
||||
self.eventmanager.send_event(
|
||||
EventType.UserMessage,
|
||||
EventType.MessageAction,
|
||||
{
|
||||
"text": content,
|
||||
"plugin_id": plugin_id.replace("[PLUGIN]", ""),
|
||||
"text": content,
|
||||
"userid": userid,
|
||||
"channel": channel,
|
||||
"source": source,
|
||||
|
||||
@@ -63,6 +63,8 @@ class EventType(Enum):
|
||||
ModuleReload = "module.reload"
|
||||
# 配置项更新
|
||||
ConfigChanged = "config.updated"
|
||||
# 消息交互动作
|
||||
MessageAction = "message.action"
|
||||
|
||||
|
||||
# 同步链式事件
|
||||
|
||||
Reference in New Issue
Block a user