diff --git a/run.js b/run.js index 9ace45c..b2c8b81 100644 --- a/run.js +++ b/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 = {};