diff --git a/run.js b/run.js index 1141059..df3279e 100644 --- a/run.js +++ b/run.js @@ -197,7 +197,12 @@ DBot.prototype.reloadModules = function() { module[property][itemName] = _.bind(item, module); _.extend(module[property][itemName], item); }, this); - _.extend(this[property], module[property]); + + if(property == 'api') { + this[property][name] = module[property]; + } else { + _.extend(this[property], module[property]); + } }, this); // Load the module listener