diff --git a/run.js b/run.js index 8a1087d..e9e5132 100644 --- a/run.js +++ b/run.js @@ -150,6 +150,19 @@ DBot.prototype.reloadModules = function() { delete require.cache[cacheKey]; try { + // Load the module config data + try { + var config = JSON.parse(fs.readFileSync(moduleDir + 'config.json', 'utf-8')) + this.config[name] = config; + for(var i=0;i