diff --git a/modules/command/config.json b/modules/command/config.json index bace93b..6395f6d 100644 --- a/modules/command/config.json +++ b/modules/command/config.json @@ -1,5 +1,5 @@ { "ignorable": false, "help": "http://github.com/reality/depressionbot/blob/master/modules/command/README.md", - "dbKeys": [ "ignores", "bans" ] + "dbKeys": [ "ignores", "bans", "users" ] } diff --git a/run.js b/run.js index 2568e96..b6297b0 100644 --- a/run.js +++ b/run.js @@ -153,9 +153,13 @@ DBot.prototype.reloadModules = function() { require('./snippets'); this.instance.removeListeners(); - _.each(moduleNames, function(name) { + + var name, moduleDir, config; + for(i=0;i