setup ¶
Setup services for bot initialization.
Modules:
-
base–Base setup service providing standardized patterns for bot initialization.
-
cog_setup–Cog setup service for bot initialization.
-
database_setup–Database setup service for bot initialization.
-
orchestrator–Bot setup orchestrator that coordinates all setup services.
-
permission_setup–Permission system setup service for bot initialization.
Classes:
-
BaseSetupService–Base class for all setup services with standardized patterns.
-
BotSetupService–Base class for setup services that need bot access.
-
BotSetupOrchestrator–Orchestrates the bot setup process using specialized setup services.
Classes¶
BaseSetupService ¶
BaseSetupService(name: str)
Bases: ABC
Base class for all setup services with standardized patterns.
Initialize the base setup service.
Parameters:
-
name(str) –The name of the setup service for logging and tracing.
Methods:
-
setup–Execute the setup process. Must be implemented by subclasses.
-
safe_setup–Execute setup with standardized error handling and tracing.
BotSetupService ¶
Bases: BaseSetupService
Base class for setup services that need bot access.
Initialize the bot setup service.
Parameters:
-
bot(Tux) –The Discord bot instance to set up.
-
name(str) –The name of the setup service for logging and tracing.
Methods:
-
setup–Execute the setup process. Must be implemented by subclasses.
-
safe_setup–Execute setup with standardized error handling and tracing.
BotSetupOrchestrator ¶
BotSetupOrchestrator(bot: Tux)
Orchestrates the bot setup process using specialized setup services.
Initialize the bot setup orchestrator.
Parameters:
-
bot(Tux) –The Discord bot instance to set up.
Methods:
-
setup–Execute all setup steps with standardized error handling.
Functions¶
setup async ¶
Execute all setup steps with standardized error handling.
Raises:
-
TuxDatabaseConnectionError–If database setup fails.
-
RuntimeError–If permission system or cog setup fails.