diff --git a/run.js b/run.js index 5efe12c..d8220fe 100644 --- a/run.js +++ b/run.js @@ -151,6 +151,14 @@ DBot.prototype.reloadModules = function() { var cacheKey = require.resolve(moduleDir + name); delete require.cache[cacheKey]; + try { + var webKey = require.resolve(moduleDir + 'web'); + } catch(err) { + } + if(webKey) { + delete require.cache[webKey]; + } + try { // Load the module config data try {