     args = JSON.stringify
       username    : @robot.name
       channel     : user.reply_to
-      attachments : attachments
+      attachments : [attachment]
       link_names  : @options.link_names
     @post "/services/hooks/hubot", args
   ###################################################################

  # The star.
  ###################################################################
  run: ->
    @robot.on 'slack-attachment', (payload)=>
      @custom(payload.message, payload.content)

    self = @
    @parseOptions()

    @log "Slack adapter options:", @options

    return @logError "No services token provided to Hubot" unless @options.token
    return @logError "No team provided to Hubot" unless @options.team

    # Listen to incoming webhooks from slack
    self.robot.router.post "/hubot/slack-webhook", (req, res) ->

    @log "Sending custom message"
    user = @userFromParams message

    attachment =
      text     : @escapeHtml data.text
      fallback : @escapeHtml data.fallback
      pretext  : @escapeHtml data.pretext
