When the bot joins the room, the bot.getMedia is undefined, but after the song has finished it contains the data. Maybe give it data on join as well?