From 27e79641d590e77bef26f7c9b2394bb20f34388f Mon Sep 17 00:00:00 2001 From: reality Date: Tue, 22 Jan 2013 23:29:49 +0000 Subject: [PATCH] revert web shit --- modules/web/web.js | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/modules/web/web.js b/modules/web/web.js index 6ec409e..a71dac3 100644 --- a/modules/web/web.js +++ b/modules/web/web.js @@ -12,18 +12,7 @@ var webInterface = function(dbot) { app.get('/', function(req, res) { res.render('index', { 'name': dbot.config.name }); }); - - console.log(Object.keys(app)); - - app.configure(function(){ - app.use(function(err, req, res, next) { - console.log('Web encountered an error: ' + err); - }); - }); - app.on('error', function(err) { - console.log('Web encountered an error: ' + err); - }); - + var server = app.listen(dbot.config.web.webPort); this.reloadPages = function() {