   # The star.
   ###################################################################
   run: ->
+    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
+
     @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

    attachments = []
    attachments.push
      text     : @escapeHtml data.text
      fallback : @escapeHtml data.fallback
      pretext  : @escapeHtml data.pretext

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