Pass config into bot handler registration
This commit is contained in:
@@ -26,6 +26,7 @@ def _project_root() -> str:
|
|||||||
|
|
||||||
def _register_handlers(
|
def _register_handlers(
|
||||||
bot: Any,
|
bot: Any,
|
||||||
|
config: dict[str, Any],
|
||||||
io_layer: BotIOLayer,
|
io_layer: BotIOLayer,
|
||||||
guard: CommandGuard,
|
guard: CommandGuard,
|
||||||
city_service: CityCommandService,
|
city_service: CityCommandService,
|
||||||
@@ -87,6 +88,7 @@ def start_bot() -> None:
|
|||||||
|
|
||||||
_register_handlers(
|
_register_handlers(
|
||||||
bot=bot,
|
bot=bot,
|
||||||
|
config=config,
|
||||||
io_layer=io_layer,
|
io_layer=io_layer,
|
||||||
guard=guard,
|
guard=guard,
|
||||||
city_service=city_service,
|
city_service=city_service,
|
||||||
|
|||||||
Reference in New Issue
Block a user