Fix module onDisconnect not first checking if onDisconnect existed
This commit is contained in:
parent
d2d729b9c4
commit
60707bd0fb
|
@ -22,7 +22,7 @@ var EventHandlers = {
|
||||||
|
|
||||||
for (let i = 0, len = BotModules.length; i < len; i++) {
|
for (let i = 0, len = BotModules.length; i < len; i++) {
|
||||||
let botModule = BotModules[i];
|
let botModule = BotModules[i];
|
||||||
if (botModule.onReady) botModule.onDisconnect();
|
if (botModule.onDisconnect) botModule.onDisconnect();
|
||||||
}
|
}
|
||||||
|
|
||||||
bot.connect();
|
bot.connect();
|
||||||
|
|
Loading…
Reference in a new issue