mirror of
https://github.com/reality/dbot.git
synced 2024-11-27 22:39:26 +01:00
modules need to be created first
This commit is contained in:
parent
1621e22ddd
commit
ee671f81e2
2
run.js
2
run.js
@ -30,11 +30,13 @@ DBot.prototype.save = function() {
|
|||||||
};
|
};
|
||||||
|
|
||||||
DBot.prototype.reloadModules = function() {
|
DBot.prototype.reloadModules = function() {
|
||||||
|
if(this.modules) {
|
||||||
this.modules.each(function(module) {
|
this.modules.each(function(module) {
|
||||||
if(module.onDestroy) {
|
if(module.onDestroy) {
|
||||||
module.onDestroy();
|
module.onDestroy();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
}
|
||||||
|
|
||||||
this.rawModules = [];
|
this.rawModules = [];
|
||||||
this.modules = [];
|
this.modules = [];
|
||||||
|
Loading…
Reference in New Issue
Block a user