forked from GitHub/dbot
link this.config to module config
This commit is contained in:
parent
3b3aa280e0
commit
5443752a8b
2
run.js
2
run.js
@ -201,6 +201,8 @@ DBot.prototype.reloadModules = function() {
|
|||||||
}
|
}
|
||||||
}, this);
|
}, this);
|
||||||
|
|
||||||
|
module.config = this.config[name];
|
||||||
|
|
||||||
// Load the module itself
|
// Load the module itself
|
||||||
var rawModule = require(moduleDir + name);
|
var rawModule = require(moduleDir + name);
|
||||||
var module = rawModule.fetch(this);
|
var module = rawModule.fetch(this);
|
||||||
|
Loading…
Reference in New Issue
Block a user