botPlayer is a reference to the bot.me object (see player)bot.on('botJoin', (botPlayer) => {
console.log('bot joined the game!');
console.log('bot name:', botPlayer.name);
});
It is recommended to use the gameReady hook for most game setup tasks, because things like bot.game are not initialized when botJoin is fired.
botPlayer is a reference to the bot.me object (see player)bot.on('botJoin', (botPlayer) => {
console.log('bot joined the game!');
console.log('bot name:', botPlayer.name);
});
It is recommended to use the gameReady hook for most game setup tasks, because things like bot.game are not initialized when botJoin is fired.