   #      score: 0
   #    }]
   getAllEntriesForWeek = (recordType, weekNum) ->
-    console.log(calculateKey(recordType, weekNum))
     (robot.brain[calculateKey(recordType, weekNum)] || {}).data || []
 
 

  logSentiment = (response) ->
    analysis = sentiment(response.message.text)
    if(response.message.text.length > 2 && analysis && analysis.score)
      updateEntry('user', get_username(response), getWeekOfYear(), analysis.score)
      updateEntry('channel', get_channel(response), getWeekOfYear(), analysis.score)

  prettyPrintList = (entries, emptyMessage) ->
    output = ''
    entries = entries || []
    if entries.length
      for entry, i in entries
        output += "#{i+1}: #{entry.name}\n"
    output || emptyMessage

  onlyNegative = (list) ->

    robot.brain[calculateKey(recordType, weekNum)] = {data: masterRecord}

  # helper method to get sender of the message
  getUsername = (response) ->
    "@#{response.message.user.name}"

  # helper method to get channel of originating message
  getChannel = (response) ->
    if response.message.room == response.message.user.name
      "@#{response.message.room}"
    else
      "##{response.message.room}"

  isPrivateMessage = (response) ->
    return getUsername(response) == getChannel(response)

  # update sentiment of a record
  # Params:
