change module names each loop in module loader to use underscore each

This commit is contained in:
Luke Slater 2013-03-22 10:48:36 +00:00
parent 46a0c7965b
commit 8d7962acc8
2 changed files with 2 additions and 3 deletions

View File

@ -1,5 +1,4 @@
{
"ignorable": false,
"webHost": "localhost",
"webPort": 9001
"webPort": 8080
}

2
run.js
View File

@ -153,7 +153,7 @@ DBot.prototype.reloadModules = function() {
this.instance.removeListeners();
moduleNames.each(function(name) {
_.each(moduleNames, function(name) {
var moduleDir = './modules/' + name + '/';
var cacheKey = require.resolve(moduleDir + name);
delete require.cache[cacheKey];