       return deferred.reject('No activity details found')
 
     if activityKey not in constants.FURTHER_DETAILS
+      console.log 'Resolving activity details for #{activityKey}:'
+      console.log activityDetails
       return deferred.resolve(activityDetails)
 
     parseActivityHash(bot, activityDetails.activityHash).then (details) ->
 
       combinedDetails = Object.assign {}, activityDetails, details
+      console.log 'Resolving combined activity details for #{activityKey}:'
+      console.log combinedDetails
       deferred.resolve(combinedDetails)
 
     ,(err) ->


# Sends error message as DM in slack
sendError = (robot, res, message) ->
  robot.send {room: res.message.user.name, "unfurl_media": false}, message

tryPlayerId = (res, membershipType, displayName, robot) ->

      payload =
        message: res.message
        attachments: [dataHelper.parseActivityDetails(activityDetails)]

      console.log 'Emitting payload:'
      console.log payload

      robot.emit('slack-attachment', payload)

