Browse Source

Fix module onDisconnect not first checking if onDisconnect existed

shorten
benji7425 4 years ago
parent
commit
60707bd0fb
  1. 2
      wrapper/index.js

2
wrapper/index.js

@ -22,7 +22,7 @@ var EventHandlers = {
for (let i = 0, len = BotModules.length; i < len; i++) {
let botModule = BotModules[i];
if (botModule.onReady) botModule.onDisconnect();
if (botModule.onDisconnect) botModule.onDisconnect();
}
bot.connect();

Loading…
Cancel
Save