From e8be6247948272a2b2faf04fb17796d1e8045ac6 Mon Sep 17 00:00:00 2001 From: Soulter <37870767+Soulter@users.noreply.github.com> Date: Sat, 31 Jan 2026 22:26:50 +0800 Subject: [PATCH] fix(context): append 'main' to module_part for handler module path (#4776) --- astrbot/core/star/context.py | 1 + 1 file changed, 1 insertion(+) diff --git a/astrbot/core/star/context.py b/astrbot/core/star/context.py index dda2d1d0b..a2d988ac6 100644 --- a/astrbot/core/star/context.py +++ b/astrbot/core/star/context.py @@ -463,6 +463,7 @@ class Context: _parts.append(part) if part in flags and i + 1 < len(module_part): _parts.append(module_part[i + 1]) + module_part.append("main") break tool.handler_module_path = ".".join(_parts) module_path = tool.handler_module_path