Get Started - Learn How To Make Your Bot!
List of all currently Free Items
Added on version 23.1.0b2
get_wallet(self) -> GetWalletRequest.GetWalletResponse | Error:
Return the bot’s wallet.
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.