This event triggers when a player tip in the room or in direct messages. It includes three parameters: objects for both the receiver and sender, containing the ID and username, along with the tip object.
const { Highrise, Events } = require("highrise.sdk");
// Create a new instance of the Highrise class.
const bot = new Highrise({
Events: [
Events.Tips // Listen for tips.
]
});
bot.on("playerTip", (sender, receiver, tip) => {
// log the tip to the console
console.log(`[TIP]: ${sender.username}:${sender.id} - ${tip.amount} - ${receiver.username}:${receiver.id}`);
})
Go Back: Get Methods