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:
parent
5443752a8b
commit
80fec7b212
4
run.js
4
run.js
@ -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 = {};
|
||||
|
Loading…
Reference in New Issue
Block a user