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

  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) ->

# Author:
#   smashwilson

# TODO: docs

Util = require 'util'
