Pass config into bot handler registration

This commit is contained in:
2569718930@qq.com
2026-04-01 18:49:42 +08:00
parent 384fd7d1e4
commit 5fa69556eb
+2
View File
@@ -26,6 +26,7 @@ def _project_root() -> str:
def _register_handlers(
bot: Any,
config: dict[str, Any],
io_layer: BotIOLayer,
guard: CommandGuard,
city_service: CityCommandService,
@@ -87,6 +88,7 @@ def start_bot() -> None:
_register_handlers(
bot=bot,
config=config,
io_layer=io_layer,
guard=guard,
city_service=city_service,