logo bannerlogo banner
Page Navigator
  • 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);
});
Warning

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.