fix: more fix in Main

This commit is contained in:
Chayapak 2024-11-12 19:28:09 +07:00
parent 5e9a1f0917
commit f322e2dd14
Signed by: ChomeNS
SSH key fingerprint: SHA256:0YoxhdyXsgbc0nfeB2N6FYE60mxMU7DS4uCUMaw2mvA

View file

@ -215,6 +215,7 @@ public class Main {
final boolean discordEnabled = config.discord.enabled;
for (Bot bot : copiedList) {
try {
if (discordEnabled) {
final String channelId = bot.discord.servers.get(bot.host + ":" + bot.port);
@ -224,6 +225,7 @@ public class Main {
if (ircEnabled) bot.irc.quit("Stopping..");
bot.stop();
} catch (Exception ignored) {}
}
if (jda != null) jda.shutdown();