i forgor i hardcoded it

This commit is contained in:
Chayapak 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();
}

View file

@ -81,6 +81,10 @@ selfCare:
enabled: true
prefix: '&8[&eChomeNS Bot&8]'
username: true # MIGHT cause problem(s) if set to false (not tested,.,.)
eval:
address: 'ws://localhost:3069'
bots:
# username - optional, if not specified it will just use a random username
# kaboom - defaults to false