Skip to content

Hubot Script - Questions (Stopping current stream, queue up songs) #59

@evanriley

Description

@evanriley

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions