WelcomeChannel config option

This commit is contained in:
Aleksei 2020-07-23 14:18:39 -04:00
parent a649da2d5a
commit bf6a1fb7a8

View File

@ -45,6 +45,9 @@ public class BotConfig {
@ConfigurationOption
public static String VOTE_CHANNEL = "vote channel here";
@ConfigurationOption
public static String WELCOME_CHANNEL = "welcome channel here";
@ConfigurationOption
public static String JOIN_LOG = "join log channel";
@ -69,9 +72,9 @@ public class BotConfig {
@ConfigurationOption
public static String HOME_SERVER = "340511685024546816";
public static void initConfig(String filePath) {
public static void initConfig(String filePath, boolean cleanfile) {
try {
new ConfigurationBuilder(BotConfig.class, new File(filePath)).build(false);
new ConfigurationBuilder(BotConfig.class, new File(filePath)).build(cleanfile);
} catch (Exception e) {
e.printStackTrace();
System.exit(1);