3
0
mirror of https://github.com/reality/dbot.git synced 2024-12-24 03:33:07 +01:00

this is what you get for not modulating properly you shit

This commit is contained in:
reality 2013-12-12 23:49:40 +00:00
parent 5e1dcd4d30
commit 2cb8c4fc10
2 changed files with 3 additions and 2 deletions

View File

@ -82,7 +82,7 @@ var webInterface = function(dbot) {
_.extend(one, {
'name': dbot.config.name,
'user': req.user,
'modules': this.indexLinks
'routes': this.indexLinks
});
resp.render(this.module + '/' + view, one, two);
}).bind(this);
@ -106,6 +106,8 @@ var webInterface = function(dbot) {
}
}.bind(this));
this.reloadPages();
this.app.get('/', function(req, res) {
res.render('index', {
'name': dbot.config.name,

1
run.js
View File

@ -306,7 +306,6 @@ DBot.prototype.reloadModules = function() {
}.bind(this));
process.nextTick(function() {
if(_.has(this.modules, 'web')) this.modules.web.reloadPages();
_.each(this.modules, function(module, name) {
if(module.onLoad) {
try {