mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-09-04 23:17:20 +08:00
add MessageAction
This commit is contained in:
@@ -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,
|
||||||
|
|||||||
@@ -63,6 +63,8 @@ class EventType(Enum):
|
|||||||
ModuleReload = "module.reload"
|
ModuleReload = "module.reload"
|
||||||
# 配置项更新
|
# 配置项更新
|
||||||
ConfigChanged = "config.updated"
|
ConfigChanged = "config.updated"
|
||||||
|
# 消息交互动作
|
||||||
|
MessageAction = "message.action"
|
||||||
|
|
||||||
|
|
||||||
# 同步链式事件
|
# 同步链式事件
|
||||||
|
|||||||
Reference in New Issue
Block a user