Get Started - Learn How To Make Your Bot!Code SnippetsGet methodsPost methodsWeb APIUseful linksList of all currently Free ItemsList of all currently Free EmotesHighrise Bot SDK Changelog
Added on version 23.1.0b2
get_wallet(self) -> GetWalletRequest.GetWalletResponse | Error:
Return the botβs wallet.
βοΈ Use cases
This method will return an object similar of the Get_room_users return object, with a type and amount atributtes.
async def on_chat(self, user: User, message: str) -> None: if message.startswith("wallet"): wallet = (await self.highrise.get_wallet()).content await self.highrise.chat(f"The bot wallet contains {wallet[0].amount} {wallet[0].type}")
In this example the bot send on chat a message with the amount and type of currency they have on the position [0] of the object list.