This commit is contained in:
Windpicker-owo
2025-09-06 00:11:31 +08:00
44 changed files with 965 additions and 1257 deletions

View File

@@ -68,7 +68,7 @@ class EventManager:
event = BaseEvent(event_name, allowed_subscribers, allowed_triggers)
self._events[event_name] = event
logger.debug(f"事件 {event_name} 注册成功")
# 检查是否有缓存的订阅需要处理
self._process_pending_subscriptions(event_name)

View File

@@ -200,7 +200,7 @@ class PluginManager:
# 检查并调用 on_plugin_loaded 钩子(如果存在)
if hasattr(plugin_instance, "on_plugin_loaded") and callable(
getattr(plugin_instance, "on_plugin_loaded")
plugin_instance.on_plugin_loaded
):
logger.debug(f"为插件 '{plugin_name}' 调用 on_plugin_loaded 钩子")
try: