 # Description:
 #   Add programmable interface to hubot.  Allow to run a hubot command
-#   whenever something came up in the conversation.
+#   whenever something came up in the conversation. Optionally, multiple 
+#   actions can be specified, with or without ordering.
 #
 # Dependencies:
 #   None

    @robot.brain.on 'loaded', =>
      if @robot.brain.data.eardropping
        @cache = @robot.brain.data.eardropping
  add: (pattern, action) ->
    task = {key: pattern, task: action}
    @cache.push task
    @robot.brain.data.eardropping = @cache
  all: -> @cache

#
# Commands:
#   hubot when you hear <pattern> do <something hubot does> - Setup a ear dropping event
#   hubot when you hear <pattern> do 1|<something hubot does>; 2|<some.... - Set up ear dropping with multiple actions and ordering
#   hubot stop ear dropping - Stop all ear dropping
#   hubot stop ear dropping on <pattern> - Remove a particular ear dropping event
#   hubot show ear dropping - Show what hubot is ear dropping on
