   robot.respond /respot/i, (message) ->
     spotRequest message, '/respot', 'put', {}, (err, res, body) ->
       message.send(body)
-
-

#
# Configuration:
#   HUBOT_SPOT_URL
#
# Commands:
#   hubot play! - Plays current playlist or song.

#   hubot last find - Pulls up the most recent find query
#   hubot airplay <Apple TV> - Tell Spot to broadcast to the specified Apple TV.
#   hubot spot - Start or restart the Spotify client.
#   hubot queue #n - Queues a song to play up when the current song is done
#   hubot queue list - Shows current song titles in the queue
#
# Authors:
#   mcminton, <Shad Downey> github:andromedado, Eric Stiens - @mutualarising

VERSION = '1.4'

URL = process.env.HUBOT_SPOT_URL || "http://localhost:5051"
MENTION_ROOM = process.env.HUBOT_SPOT_MENTION_ROOM || "#general"

spotRequest = (message, path, action, options, callback) ->
  message.http("#{URL}#{path}")
