i forgor i hardcoded it

This commit is contained in:
ChomeNS
2023-07-01 19:56:55 +07:00
parent 00054bfbe2
commit a21db7af1b
3 changed files with 11 additions and 1 deletions

View File

@@ -27,6 +27,8 @@ public class Configuration {
@Getter public List<String> trusted = new ArrayList<>();
@Getter public SelfCare selfCare = new SelfCare();
@Getter public Eval eval = new Eval();
@Getter public BotOption[] bots = new BotOption[]{};
public static class ConsolePrefixes {
@@ -109,6 +111,10 @@ public class Configuration {
@Getter public boolean username = true;
}
public static class Eval {
@Getter public String address = "ws://localhost:3069";
}
public static class BotOption {
@Getter public String host;
@Getter public int port;

View File

@@ -23,7 +23,7 @@ public class EvalPlugin {
public EvalPlugin (Bot bot) {
try {
socket = IO.socket("ws://localhost:3069");
socket = IO.socket(bot.config().eval().address());
} catch (Exception e) {
e.printStackTrace();
}