 # Hook in with hobot
 module.exports = (robot) ->
   robot.respond /drush (.*)$/i, (msg) ->
-    msg.send "drush fired!"
     drush.execute(msg)

          output += "Cache clear complete."
        msg.send output

#   drush_pml: (msg, command) ->
#     output = ''
#     # @TODO loop through command.args and append args that appear in allowed_options
#     allowed_options = ['--enabled', '--disabled', '--core', '--no-core']
#     spawn_options = [command.alias, "pml", "--pipe"]
#     pml = spawn("drush", [command.alias, "pml", "--status=enabled", "--no-core"])

  # parsing the user input after "drush "
  parse_command = (user_command) ->


    drush_cc: (msg, command) ->
      output = ''
      msg.send "This may take a moment..."
      clearcache = spawn("drush", [command.alias, "cc", "all"])
      clearcache.stdout.on "data", (data) ->
        output += data
