Skip to content

cog_setup

Cog setup service for bot initialization.

Classes:

  • CogSetupService

    Handles cog loading and plugin setup during bot initialization.

Classes

CogSetupService

Python
CogSetupService(bot: Tux)

Bases: BotSetupService

Handles cog loading and plugin setup during bot initialization.

Initialize the cog setup service.

Parameters:

  • bot (Tux) –

    The Discord bot instance to load cogs for.

Methods:

  • setup

    Load all cogs and plugins.

  • safe_setup

    Execute setup with standardized error handling and tracing.

Functions

setup async
Python
setup() -> None

Load all cogs and plugins.

_load_jishaku async
Python
_load_jishaku() -> None

Load Jishaku development plugin.

safe_setup async
Python
safe_setup() -> bool

Execute setup with standardized error handling and tracing.

Returns:

  • True if setup succeeded, False if it failed
_load_cogs async
Python
_load_cogs() -> None

Load all bot cogs using CogLoader.

_load_hot_reload async
Python
_load_hot_reload() -> None

Load hot reload system.

_log_step
Python
_log_step(step: str, status: str = 'info') -> None

Log a setup step with consistent formatting.