Closed ghost closed 11 years ago
You get all these informations when you enter the room. And you receive all the update when a new song start. So you can keep the current song informations in memory (in some variables).
See "on('roomChanged')" and "on('newsong')"
(Sorry, I closed the issue accidentally)
but, how do you do it in code format.
Also, you can ask to get the informations of the room with : "bot.roomInfo(callback);"
ok, I want to know how to code it for my bot.
bot = new Bot...;
bot.on('roomChanged', function(data) {
console.log('The current song is: ' + data.room.metadata.current_song.metadata.song);
console.log('From the album: ' + data.room.metadata.current_song.metadata.album);
});
ok, thank you so much. your the best.
How do you make the bot say info about the song that is currently being played on the DJ Stage.
I am talking about him saying what the song name is, the artist, the album, and the genre.