You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Turntablelover edited this page Aug 21, 2013
·
1 revision
varBot=require('ttapi');varAUTH='xxxxxxxxxxxxxxxxxxxxxxxx';varUSERID='xxxxxxxxxxxxxxxxxxxxxxxx';varROOMID='xxxxxxxxxxxxxxxxxxxxxxxx';varbot=newBot(AUTH,USERID,ROOMID);bot.on('newsong',function(data){bot.speak('The current song is: '+data.room.metadata.current_song.metadata.song);bot.speak('From the artist: '+data.room.metadata.current_song.metadata.artist);bot.speak('From the album: '+data.room.metadata.current_song.metadata.album);bot.speak('Genre is: '+data.room.metadata.current_song.metadata.genre);bot.speak('Start Time is: '+data.room.metadata.current_song.starttime);});