Finish configuration init method
All checks were successful
continuous-integration/drone/push Build is passing

This method runs every time the bot starts, and ensures that all values are always present in the config file.
This commit is contained in:
2022-11-21 23:28:33 +01:00
parent f74ae43673
commit c650caa090
3 changed files with 103 additions and 13 deletions

View File

@@ -33,6 +33,7 @@ public class Cache
private static final String heartbeatLink = "https://status.beatrice.wtf/api/push/%apikey%?status=up&msg=OK&ping=";
private static String heartbeatApiKey = "";
private final static String execPath = System.getProperty("user.dir");
private static final String botVersion = "0.1.5-slash"; // we should probably find a way to make this consistent with Maven
private static final String botName = "HidekoBot";
@@ -232,5 +233,6 @@ public class Cache
public static String getHeartBeatApiKey() {
return heartbeatApiKey;
}
public static String getExecPath() { return execPath; }
}