bot/bot.py
async def on_starting(self, _event: hikari.StartingEvent) -> None:
        """Load extensions when bot is starting."""
        logging.info("Connecting to database...")
        self.db_conn = await init_db()

        logging.info("Loading extensions...")

        for ext in Client.extensions:
            ext = str(ext).replace(os.sep, ".")[:-3]
            self.load_extension(ext)
            logging.info(f"{ext}: Loaded")

        logging.info("Done loading extensions.")
Load extensions when bot is starting.
Load extensions when bot is starting.
Load extensions when bot is starting .
async def on_starting(self, _event: hikari.StartingEvent) -> None:
        logging.info("Connecting to database...")
        self.db_conn = await init_db()
        logging.info("Loading extensions...")
        for ext in Client.extensions:
            ext = str(ext).replace(os.sep, ".")[:-3]
            self.load_extension(ext)
            logging.info(f"{ext}: Loaded")
        logging.info("Done loading extensions.")
async def on_starting ( self , _event : hikari . StartingEvent ) -> None : logging . info ( "Connecting to database..." ) self . db_conn = await init_db ( ) logging . info ( "Loading extensions..." ) for ext in Client . extensions : ext = str ( ext ) . replace ( os . sep , "." ) [ : - 3 ] self . load_extension ( ext ) logging . info ( f"{ext}: Loaded" ) logging . info ( "Done loading extensions." )
Load extensions when bot is starting.
Load extensions when bot is starting .
"""Load extensions when bot is starting."""
self
_event
hikari.StartingEvent