i forgor i hardcoded it
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user