Get Started - Learn How To Make Your Bot!
List of all currently Free Items
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.
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: