 #   HUBOT_SPOT_URL
 #
 # Commands:
-#   hubot play - Plays current playlist or song.
+#   hubot play! - Plays current playlist or song.
 #   hubot pause - Pause the music.
 #   hubot play next - Plays the next song.
 #   hubot play back - Plays the previous song.

#   hubot play <song> - Play a particular song. This plays the first most popular result.
#   hubot volume? - Returns the current volume level.
#   hubot volume [0-100] - Sets the volume.
#   hubot mute - Sets the volume to 0.
#
# Author:
#   mcminton

  robot.respond /play (.*)/i, (message) ->
    params = {q: message.match[1]}
    spotRequest message, '/find', 'post', params, (err, res, body) ->
      message.send(":small_blue_diamond: #{body}")

  robot.respond /(.*) says turn it down.*/i, (message) ->
    name = message.match[1]
    params = {volume: 15}
    spotRequest message, '/volume', 'put', params, (err, res, body) ->
     message.send("#{name} says, 'Turn down the music and get off my lawn!' :bowtie:")