I'm currently trying to write a script for Hubot that uses node-spotify-web to play music through the computer that it is located on, you can see it here I'm very new to NodeJS/CoffeeScript/Spotify WebSockets...pretty much everything. So far I have the commands "Play track" and "Play album" thanks to you're examples. My first question is, is there a way to stop the current song playing. I've tried using track.end() but it doesn't stop the current stream.
robot.respond /stop music/i, (message) ->
track.end()
which does not work.
My second question is, is there a way to Queue up songs to prevent them from overlapping? Currently if one person request a song while another song is playing they simply play over each other.
Thanks!