WelcomeChannel config option
This commit is contained in:
parent
a649da2d5a
commit
bf6a1fb7a8
@ -45,6 +45,9 @@ public class BotConfig {
|
|||||||
@ConfigurationOption
|
@ConfigurationOption
|
||||||
public static String VOTE_CHANNEL = "vote channel here";
|
public static String VOTE_CHANNEL = "vote channel here";
|
||||||
|
|
||||||
|
@ConfigurationOption
|
||||||
|
public static String WELCOME_CHANNEL = "welcome channel here";
|
||||||
|
|
||||||
@ConfigurationOption
|
@ConfigurationOption
|
||||||
public static String JOIN_LOG = "join log channel";
|
public static String JOIN_LOG = "join log channel";
|
||||||
|
|
||||||
@ -69,9 +72,9 @@ public class BotConfig {
|
|||||||
@ConfigurationOption
|
@ConfigurationOption
|
||||||
public static String HOME_SERVER = "340511685024546816";
|
public static String HOME_SERVER = "340511685024546816";
|
||||||
|
|
||||||
public static void initConfig(String filePath) {
|
public static void initConfig(String filePath, boolean cleanfile) {
|
||||||
try {
|
try {
|
||||||
new ConfigurationBuilder(BotConfig.class, new File(filePath)).build(false);
|
new ConfigurationBuilder(BotConfig.class, new File(filePath)).build(cleanfile);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
System.exit(1);
|
System.exit(1);
|
||||||
|
Loading…
Reference in New Issue
Block a user