Closed ghost closed 10 years ago
This is very nearly the same question (and resolution) as #172.
not really, the song stats is for the total count of up and down votes, this is for the bot to say album, artist, and song name for the current song on the newsong event.
You should have looked at the solution to that ticket before you responded. Good news! It's still there waiting for you. :)
I looked at it, and what should i change in this code block:
bot.on('endsong', function (data) {
var currentdj = data.room.metadata.current_dj;
var song = data.room.metadata.current_song.metadata.song;
var artist = data.room.metadata.current_song.metadata.artist;
var album = data.room.metadata.current_song.metadata.album;
var up_votes = data.room.metadata.upvotes;
var down_votes = data.room.metadata.downvotes;
var listeners = data.room.metadata.listeners;
bot.speak(song +" ( "+up_votes+" :+1: "+down_votes+" :-1: "+snagCounter+" <3 "+listeners+" :busts_in_silhouette: )");
});
so it can fit my needs for my bot to say album name, song name, and artist name.
Ask yourself these questions.
I'm not asking you to answer these questions here. The answers are purely for your own instruction. They will ultimately take you to the answer you are looking for.
ok, thanks.
How do i make my bot say the artist, album name, and song in the chat box when the new song event starts?