 
 sprintly = (msg, auth) ->
   if auth ?= sprintlyUser(msg).auth
-    client = msg.http('https://sprint.ly')
+    client = msg.robot.http('https://sprint.ly')
       .header('accept', 'application/json')
       .header('authorization', "Basic #{new Buffer(auth).toString('base64')}")
       .path('/api')

          else
            msg.send "Something came up: #{body}"

DummyClient = ->
self = -> this
for method in ['scope', 'query', 'product']

#   hubot sprintly [product_id] #42 - show item #42
#   hubot sprintly [product_id] #42 tasks - list unfinished subtasks of story #42
#   hubot sprintly [product_id] <action> #42 - carry out action on item #42 (available actions: start, stop, finish, accept, reject, delete)
#   hubot sprintly [product_id] [environment] deploy 4,8,15,16,23,42 - mark items as deployed to an environment
#   hubot sprintly token <email:apitoken> - set/update credentials for user (required for other commands to work)
#   hubot sprintly default 1234 - set default product_id
#   hubot sprintly default_env production - set default environment (used for deploy)
#
# Author:
#   lackac
