perf: 完善事件处理

This commit is contained in:
Rock Chin
2023-01-15 22:41:47 +08:00
parent 870aba0560
commit fd27a7c999
3 changed files with 7 additions and 0 deletions

View File

@@ -193,6 +193,7 @@ class PluginHost:
try:
kwargs['host'] = context.get_plugin_host()
kwargs['event'] = event_context
hook(plugin['instance'], **kwargs)
if event_context.is_prevented_default():

View File

@@ -33,6 +33,7 @@ PersonNormalMessageReceived = "person_normal_message_received"
returns (optional):
alter: str 修改后的消息文本
reply: list 回复消息组件列表
"""
PersonCommandSent = "person_command_sent"
@@ -61,6 +62,7 @@ GroupNormalMessageReceived = "group_normal_message_received"
returns (optional):
alter: str 修改后的消息文本
reply: list 回复消息组件列表
"""
GroupCommandSent = "group_command_sent"