diff --git a/astrbot/core/star/star_tools.py b/astrbot/core/star/star_tools.py index 284423840..bc7ead53e 100644 --- a/astrbot/core/star/star_tools.py +++ b/astrbot/core/star/star_tools.py @@ -19,6 +19,7 @@ class StarTools: _context: ClassVar[Optional[Context]] = None + @classmethod def initialize(cls, context: Context) -> None: """ 初始化StarTools,设置context引用