Update config file paths

Changed the hardcoded file paths for both Config and BotConfig initializations. The file paths now point to "/mnt/configs/DiscordLink", replacing the previous location in the user's home directory.
This commit is contained in:
Teriuihi 2024-07-19 21:12:29 +02:00
parent cb4601dbfe
commit a8f24e8d91
2 changed files with 2 additions and 2 deletions

View File

@ -35,7 +35,7 @@ public class BotConfig {
public static File CONFIGPATH;
public static void init() { // todo setup share for the config
CONFIGPATH = new File(System.getProperty("user.home") + File.separator + "share" + File.separator + "configs" + File.separator + "DiscordLink");
CONFIGPATH = new File(File.separator + "mnt" + File.separator + "configs" + File.separator + "DiscordLink");
CONFIG_FILE = new File(CONFIGPATH, "bot-config.yml");
configLoader = YAMLConfigurationLoader.builder()

View File

@ -31,7 +31,7 @@ public final class Config {
public static File CONFIGPATH;
public static void init() { // todo setup share for the config
CONFIGPATH = new File(System.getProperty("user.home") + File.separator + "share" + File.separator + "configs" + File.separator + "DiscordLink");
CONFIGPATH = new File(File.separator + "mnt" + File.separator + "configs" + File.separator + "DiscordLink");
CONFIG_FILE = new File(CONFIGPATH, "config.yml");
configLoader = YAMLConfigurationLoader.builder()