The method wallet.boost.get()
is used to retrieve the boost tokens available in the bot's wallet. It returns the number of boost tokens available.
// Assuming you have defined the Highrise instance as "bot".
bot.on("chatCreate", async (user, message) => {
if (message === "boosts") {
bot.wallet.boost.get().then(boosts => {
console.log("The Bot's boosts tokens are:", boosts);
}).catch(e => console.error(e));
}
});
Go Back: Buy & Fetch Wallet