diff --git a/event_system/events/plugin_events.py b/event_system/events/plugin_events.py index 3767039..3519197 100644 --- a/event_system/events/plugin_events.py +++ b/event_system/events/plugin_events.py @@ -46,8 +46,8 @@ class PluginCallErrorEvent(Event): plugin_name: str # 插件名称 command: str # 触发的命令 user_id: str # 用户ID - group_id: Optional[str] = None # 群组ID,私聊为None - is_group: bool = False # 是否群聊 + group_id: Optional[str] # 群组ID,私聊为None + is_group: bool # 是否群聊 error_message: str # 错误信息 stack_trace: Optional[str] = None # 堆栈跟踪 process_time: int = 0 # 处理耗时(毫秒) diff --git a/plugins/music/main.py b/plugins/music/main.py index beef85e..582d116 100644 --- a/plugins/music/main.py +++ b/plugins/music/main.py @@ -282,7 +282,7 @@ class MusicPlugin(MessagePluginInterface): ) result = wcf.forward_msg(data[0]["MsgSvrID"], receiver) - self.LOG.info(f"点歌发送结果: {result}") + self.LOG.info(f"插件化:点歌发送结果: {result}") return True except Exception as e: diff --git a/plugins/stats_collector/decorators.py b/plugins/stats_collector/decorators.py index 868bec5..dccaa74 100644 --- a/plugins/stats_collector/decorators.py +++ b/plugins/stats_collector/decorators.py @@ -4,7 +4,7 @@ from datetime import datetime from typing import Callable, Dict, Any, Tuple from event_system.event_manager import EventManager -from event_system.events.stats_events import PluginCallStartEvent, PluginCallEndEvent, PluginCallErrorEvent +from event_system.events.plugin_events import PluginCallStartEvent, PluginCallEndEvent, PluginCallErrorEvent def plugin_stats_decorator(plugin_name: str) -> Callable: