 
 
 module.exports = (robot) ->
+  robot.respond /(?:rc)\s+for\s([^\s]+)$/i, (msg) ->
+    who = msg.match[1]
+    new RCScore(who).fetch (err, info, self) =>
+      msg.reply "TODO(sshirokov): Err: #{err} Info: #{util.inspect info}: Self: #{self}"
+
   robot.respond /(?:rc)\s+(\d+.?\d*)$/i, (msg) ->
     who = msg.message.user.name.toLowerCase()
     score = msg.match[1]

    @storage.auth info.auth.split(":")[1] if info.auth

class RCScore extends RCBase
  constructor: (@who=null, @options={}) -> super()

  set: (score, cb) =>
    cb(new RCError("Setting score of nobody"), null, this) unless @who
    now = Date.now()

    @storage.multi([

  score: -> @info?.score
  timestamp: -> @info?.timestamp

  fetch: (cb) =>
    @storage.zscore @key("latest"), @who, (err, stamp) =>
      return cb(err, null, this) if err
      # Use `stamp` to fetch from `@key("@{who}:scores")`
      cb(new RCError("TODO(sshirokov): Got score of #{stamp} for #{@who}"), null, this)
