The method "wallet" can be used to view the bot's wallet, which contains three different currencies: gold, boost tokens, and voice tokens. Additionally, it can be used to buy boost and voice tokens based on priorities that can be imported from the package.
To access the wallet object, you can utilize the Highrise class instance. For example, if your instance is named "bot," you can call the wallet method using bot.wallet
. Any subsequent method invoked belongs to the wallet. For instance, bot.wallet.get()
.
Priorities.BotWalletOnly
: The bot will use its gold to buy.Priorities.UserWalletOnly
: The bot will use the owner's gold to buy.Priorities.BotWalletAndUse
: The bot will use its wallet and the owner's wallet to buy.Below are examples demonstrating a list of all available methods in the room class: