add MessageAction

This commit is contained in:
jxxghp
2025-06-15 21:25:14 +08:00
parent 0d938f2dca
commit 6da65d3b03
2 changed files with 4 additions and 2 deletions
+2 -2
View File
@@ -517,10 +517,10 @@ class MessageChain(ChainBase):
plugin_id, content = callback_data.split("|", 1) plugin_id, content = callback_data.split("|", 1)
# 广播给插件处理 # 广播给插件处理
self.eventmanager.send_event( self.eventmanager.send_event(
EventType.UserMessage, EventType.MessageAction,
{ {
"text": content,
"plugin_id": plugin_id.replace("[PLUGIN]", ""), "plugin_id": plugin_id.replace("[PLUGIN]", ""),
"text": content,
"userid": userid, "userid": userid,
"channel": channel, "channel": channel,
"source": source, "source": source,
+2
View File
@@ -63,6 +63,8 @@ class EventType(Enum):
ModuleReload = "module.reload" ModuleReload = "module.reload"
# 配置项更新 # 配置项更新
ConfigChanged = "config.updated" ConfigChanged = "config.updated"
# 消息交互动作
MessageAction = "message.action"
# 同步链式事件 # 同步链式事件