alaingilbert / Turntable-API

Allows you to create bots for turntable.fm
http://alaingilbert.github.com/Turntable-API/
MIT License
317 stars 98 forks source link

Adding songs to Q no longer working #75

Closed meowsk closed 12 years ago

meowsk commented 12 years ago

For some reason the method I have been using to add songs to my bot's queue is no longer working. I haven't changed anything on it so I am not sure why it suddenly stopped. I can return the songID and index in the console but it just won't let me add. Below is my code...

if (data.text.match(/^*add$/)) { bot.roomInfo(true, function(data) { var newSong = data.room.metadata.current_song._id; var newSongName = songName = data.room.metadata.current_song.metadata.song; var newArtist = artist = data.room.metadata.current_song.metadata.artist; bot.playlistAdd(newSong, plLength); console.log(newSong, plLength); plLength++; bot.vote('up'); bot.speak('I can now play "'+newSongName+'" by '+newArtist+' for you.'); }); }

ItsJakeo commented 12 years ago

Mine is not working either :(

meowsk commented 12 years ago

From what I can tell it still adds songs just without the heart fart if I leave it as is. Right?

If I wanted to add it back in to my code would I just put blocked=false in my snag function?

alaingilbert commented 12 years ago

playlistAdd only add the song to your playlist.

snag will make the little heart to pop out of your head ! (snag will NOT add the song to your playlist)

Can you confirm that everything works like it should ?

MikeWills commented 12 years ago

I have had no problems adding songs.

alaingilbert commented 12 years ago

Cool ! Thanks for your feedback.

meowsk commented 12 years ago

Thanks Alain! Things are working how they should. :o)