 
   robot.respond /when you hear (.+?) do (.+?)$/i, (msg) ->
     key = msg.match[1]
-    task = msg.match[2]
-    earDropping.add(key, task)
+    for task_raw in msg.match[2].split ";"
+      task_split = task_raw.split "|"
+      earDropping.add(key, task_split[1], task_split[0])
     msg.send "I am now ear dropping for #{key}. Hehe."
 
   robot.respond /stop ear *dropping$/i, (msg) ->

    @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
