   # Setup the Express server's defaults.
   #
   # Returns nothing.
-  setupExpress: ->
+  setupExpress: (httpd)->
     user    = process.env.EXPRESS_USER
     pass    = process.env.EXPRESS_PASSWORD
     stat    = process.env.EXPRESS_STATIC

    app.use express.bodyParser()
    app.use express.static stat if stat

    @server = app.listen process.env.PORT || 8080
    @router = app

    herokuUrl = process.env.HEROKU_URL

    @logger    = new Log process.env.HUBOT_LOG_LEVEL or 'info'

    @parseVersion()
    @setupExpress(httpd)
    @pingIntervalId = null
    @loadAdapter adapterPath, adapter

