diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 3b328af..74c732e 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -4,7 +4,12 @@ - @@ -492,7 +496,8 @@ - diff --git a/src/main/java/land/chipmunk/chayapak/chomens_bot/Configuration.java b/src/main/java/land/chipmunk/chayapak/chomens_bot/Configuration.java index e67c748..206973a 100644 --- a/src/main/java/land/chipmunk/chayapak/chomens_bot/Configuration.java +++ b/src/main/java/land/chipmunk/chayapak/chomens_bot/Configuration.java @@ -44,6 +44,7 @@ public class Configuration { @Getter public EmbedColors embedColors = new EmbedColors(); @Getter public String trustedRoleName = "Trusted"; @Getter public String adminRoleName = "Admin"; + @Getter public String statusMessage = "Gay Sex"; } public static class EmbedColors { diff --git a/src/main/java/land/chipmunk/chayapak/chomens_bot/Main.java b/src/main/java/land/chipmunk/chayapak/chomens_bot/Main.java index d8f60db..ff6931a 100644 --- a/src/main/java/land/chipmunk/chayapak/chomens_bot/Main.java +++ b/src/main/java/land/chipmunk/chayapak/chomens_bot/Main.java @@ -3,6 +3,7 @@ package land.chipmunk.chayapak.chomens_bot; import land.chipmunk.chayapak.chomens_bot.plugins.ConsolePlugin; import net.dv8tion.jda.api.JDA; import net.dv8tion.jda.api.JDABuilder; +import net.dv8tion.jda.api.entities.Activity; import org.yaml.snakeyaml.Yaml; import org.yaml.snakeyaml.constructor.Constructor; @@ -63,6 +64,7 @@ public class Main { } catch (InterruptedException ignored) { System.exit(1); } + jda.getPresence().setPresence(Activity.playing(config.discord().statusMessage()), false); // what does `b` do? kinda sus,.., for (Configuration.BotOption botOption : botsOptions) { final Bot bot = new Bot(botOption, bots, config); diff --git a/src/main/resources/default-config.yml b/src/main/resources/default-config.yml index 495a0b3..1ad763c 100644 --- a/src/main/resources/default-config.yml +++ b/src/main/resources/default-config.yml @@ -18,6 +18,7 @@ discord: token: 'token here' trustedRoleName: 'Trusted' adminRoleName: 'Admin' # NOTE: admin will be able to access servereval.. + statusMessage: 'Gay Sex' servers: localhost:25565: 'channel id'