 # Author:
 #   smashwilson
 
-# TODO: actually read env vars for configuration.
 # TODO: docs
 
 Util = require 'util'

  client = Redis.createClient(info.port, info.hostname)
  storage = new RedisMarkovStorage(client)

  model = new MarkovModel(storage, 2)

  # The robot hears ALL. You cannot run.
  robot.hear /.+$/, (msg) ->


  # Generate markov chains on demand, optionally seeded by some initial state.
  robot.respond /markov(\s+(.+))?$/i, (msg) ->
    model.generate msg.match[2] or '', max, (text) =>
      msg.reply text
