forked from GitHub/dbot
revert web shit
This commit is contained in:
parent
23d0a76c83
commit
27e79641d5
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user