▶️ On_start

▶️ On_start

Added on version 23.1.0b0
on_start(self, session_metadata: SessionMetadata) -> None Called when a connection to the room is established. You can use this method to perform any necessary setup.

⚙️ Use cases

This code is mandatory to start and maintain the bot session, but you can use it as you wish to trigger functions when the bot starts.
async def on_start(self, SessionMetadata: SessionMetadata) -> None: await self.highrise.chat("Hello, world!")
This will make the bot say “Hello, world!” in the chat on start:
notion image

Built with Potion.so