         res.send responseString
     else
       res.reply "NOPE, not everyone has responded yet! (#{status})\n(Czars can use 'cah answers!' to see answers early)"
-  
+
   # combo hear and respond, prepends ^ to hear regex
   # good for allowing same commands in room and DM
   robot.hearspond = (regex, cb) ->

    else if db.answers.length == 0
      res.reply "No submissions to choose from yet."
    else
      num = parseInt(res.match[1]) - 1
      if num < 0 or num >= db.answers.length
        res.reply "That is not an valid choice, try again."
      else

module.exports = (robot) ->
  robot.error (err, res) ->
    if res?
      res.reply "Someone broke me again: #{err.message}"
    robot.logger.error err.message
    robot.logger.error err.stack
    robot.logger.error JSON.stringify(robot.brain.data.cah, null, '\t'))

  robot.brain.on "loaded", =>
    if !robot.brain.data.cah
