BIG feat,fix,refactor: use database and some minor refactoring which also fixes memory issues and * related to PersistentDataUtilities

This commit is contained in:
ChomeNS
2024-12-14 15:39:24 +07:00
parent d09b9b37db
commit 621f06f2e5
18 changed files with 656 additions and 530 deletions

View File

@@ -14,6 +14,8 @@ public class Configuration {
public Keys keys = new Keys();
public Backup backup = new Backup();
public Database database = new Database();
public String weatherApiKey;
public String bossBarNamespace = "chomens_bot";
@@ -57,6 +59,13 @@ public class Configuration {
public int failTimes = 2;
}
public static class Database {
public boolean enabled = false;
public String address = "localhost";
public String username = "chomens_bot";
public String password = "123456";
}
public static class Keys {
public String trustedKey;
public String adminKey;