forked from GitHub/dbot
wtf was that there for?
This commit is contained in:
parent
777d738394
commit
4f269a5c02
4
run.js
4
run.js
@ -128,10 +128,6 @@ DBot.prototype.save = function(cb) {
|
|||||||
|
|
||||||
// Hot-reload module files.
|
// Hot-reload module files.
|
||||||
DBot.prototype.reloadModules = function() {
|
DBot.prototype.reloadModules = function() {
|
||||||
this.save().then(function() {
|
|
||||||
console.log('test');
|
|
||||||
});
|
|
||||||
|
|
||||||
if(this.modules) { // Run 'onDestroy' code for each module if it exists.
|
if(this.modules) { // Run 'onDestroy' code for each module if it exists.
|
||||||
_.each(this.modules, function(module) {
|
_.each(this.modules, function(module) {
|
||||||
if(module.onDestroy) {
|
if(module.onDestroy) {
|
||||||
|
Loading…
Reference in New Issue
Block a user