diff --git a/run.js b/run.js index 5b8b58f..c36d68b 100644 --- a/run.js +++ b/run.js @@ -125,6 +125,8 @@ DBot.prototype.save = function() { // Hot-reload module files. DBot.prototype.reloadModules = function() { + this.save(); + if(this.modules) { // Run 'onDestroy' code for each module if it exists. _.each(this.modules, function(module) { if(module.onDestroy) {