forked from GitHub/dbot
this is what you get for not modulating properly you shit
This commit is contained in:
parent
5e1dcd4d30
commit
2cb8c4fc10
@ -82,7 +82,7 @@ var webInterface = function(dbot) {
|
|||||||
_.extend(one, {
|
_.extend(one, {
|
||||||
'name': dbot.config.name,
|
'name': dbot.config.name,
|
||||||
'user': req.user,
|
'user': req.user,
|
||||||
'modules': this.indexLinks
|
'routes': this.indexLinks
|
||||||
});
|
});
|
||||||
resp.render(this.module + '/' + view, one, two);
|
resp.render(this.module + '/' + view, one, two);
|
||||||
}).bind(this);
|
}).bind(this);
|
||||||
@ -106,6 +106,8 @@ var webInterface = function(dbot) {
|
|||||||
}
|
}
|
||||||
}.bind(this));
|
}.bind(this));
|
||||||
|
|
||||||
|
this.reloadPages();
|
||||||
|
|
||||||
this.app.get('/', function(req, res) {
|
this.app.get('/', function(req, res) {
|
||||||
res.render('index', {
|
res.render('index', {
|
||||||
'name': dbot.config.name,
|
'name': dbot.config.name,
|
||||||
|
1
run.js
1
run.js
@ -306,7 +306,6 @@ DBot.prototype.reloadModules = function() {
|
|||||||
}.bind(this));
|
}.bind(this));
|
||||||
|
|
||||||
process.nextTick(function() {
|
process.nextTick(function() {
|
||||||
if(_.has(this.modules, 'web')) this.modules.web.reloadPages();
|
|
||||||
_.each(this.modules, function(module, name) {
|
_.each(this.modules, function(module, name) {
|
||||||
if(module.onLoad) {
|
if(module.onLoad) {
|
||||||
try {
|
try {
|
||||||
|
Loading…
Reference in New Issue
Block a user