3
0
mirror of https://github.com/reality/dbot.git synced 2024-11-27 14:29:29 +01:00

do that in the righ tplace...

This commit is contained in:
reality 2013-01-22 00:39:04 +00:00
parent 5443752a8b
commit 80fec7b212

4
run.js
View File

@ -201,14 +201,14 @@ DBot.prototype.reloadModules = function() {
}
}, this);
module.config = this.config[name];
// Load the module itself
var rawModule = require(moduleDir + name);
var module = rawModule.fetch(this);
module.name = name;
this.rawModules.push(rawModule);
module.config = this.config[name];
// Load the module data
_.each([ 'commands', 'pages', 'api' ], function(property) {
var propertyObj = {};