refactor: make eval use only 1 connection to hopefully reduce threads amount + some misc refactors
fix: in GetBotInfoFunction, i misspelled `username` as `usernane`, it has been fixed refactor: remove GetLatestChatMessageFunction, since the functions are now global and not bot-specific (yes, i know i can still implement it somewhere like in EvalPlugin or even call a function in GetLatestChatMessageFunction itself passing the bot, but no one really use this function anyway except the last time when ploat made some telnet ahh eval thing which used this function)
This commit is contained in:
@@ -2,10 +2,7 @@ package me.chayapak1.chomens_bot;
|
||||
|
||||
import com.google.common.util.concurrent.ThreadFactoryBuilder;
|
||||
import it.unimi.dsi.fastutil.objects.ObjectArrayList;
|
||||
import me.chayapak1.chomens_bot.plugins.ConsolePlugin;
|
||||
import me.chayapak1.chomens_bot.plugins.DatabasePlugin;
|
||||
import me.chayapak1.chomens_bot.plugins.DiscordPlugin;
|
||||
import me.chayapak1.chomens_bot.plugins.IRCPlugin;
|
||||
import me.chayapak1.chomens_bot.plugins.*;
|
||||
import me.chayapak1.chomens_bot.util.*;
|
||||
import net.dv8tion.jda.api.requests.restaction.MessageCreateAction;
|
||||
import org.yaml.snakeyaml.LoaderOptions;
|
||||
@@ -146,6 +143,7 @@ public class Main {
|
||||
console = new ConsolePlugin(config);
|
||||
if (config.discord.enabled) discord = new DiscordPlugin(config);
|
||||
if (config.irc.enabled) irc = new IRCPlugin(config);
|
||||
EvalPlugin.connect(config.eval.address);
|
||||
|
||||
LoggerUtilities.log(I18nUtilities.get("initialized"));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user