forked from GitHub/dbot
change module names each loop in module loader to use underscore each
This commit is contained in:
parent
46a0c7965b
commit
8d7962acc8
@ -1,5 +1,4 @@
|
||||
{
|
||||
"ignorable": false,
|
||||
"webHost": "localhost",
|
||||
"webPort": 9001
|
||||
"webPort": 8080
|
||||
}
|
||||
|
2
run.js
2
run.js
@ -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];
|
||||
|
Loading…
Reference in New Issue
Block a user