From 26dbd8c7ef37820fed56f814ed0b3c30f74765fc Mon Sep 17 00:00:00 2001 From: HypherionMC Date: Sun, 29 Oct 2023 15:47:54 +0200 Subject: [PATCH] [FEAT] Implement custom bot status support --- gradle.properties | 2 +- .../sdlink/core/config/impl/BotConfigSettings.java | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/gradle.properties b/gradle.properties index 0f3986b..25c677e 100644 --- a/gradle.properties +++ b/gradle.properties @@ -5,7 +5,7 @@ version_patch=36 shade_group=com.hypherionmc.sdlink.shaded. # Core Dependencies -jda=5.0.0-beta.13 +jda=5.0.0-beta.16 chewtils=2.0-SNAPSHOT webhooks=0.7.5 commons4=4.4 diff --git a/src/main/java/com/hypherionmc/sdlink/core/config/impl/BotConfigSettings.java b/src/main/java/com/hypherionmc/sdlink/core/config/impl/BotConfigSettings.java index c814e2c..c306ace 100644 --- a/src/main/java/com/hypherionmc/sdlink/core/config/impl/BotConfigSettings.java +++ b/src/main/java/com/hypherionmc/sdlink/core/config/impl/BotConfigSettings.java @@ -37,11 +37,11 @@ public class BotConfigSettings { public static class BotStatus { @Path("status") @SpecComment("Do not add Playing. A status to display on the bot. You can use %players% and %maxplayers% to show the number of players on the server") - public String botStatus = "Minecraft"; + public String botStatus = "Enjoying Minecraft with %players%/%maxplayers% players"; @Path("botStatusType") - @SpecComment("The type of the status displayed on the bot. Valid entries are: PLAYING, STREAMING, WATCHING, LISTENING") - public Activity.ActivityType botStatusType = Activity.ActivityType.PLAYING; + @SpecComment("The type of the status displayed on the bot. Valid entries are: PLAYING, STREAMING, WATCHING, LISTENING, CUSTOM_STATUS") + public Activity.ActivityType botStatusType = Activity.ActivityType.CUSTOM_STATUS; @Path("botStatusStreamingURL") @SpecComment("The URL that will be used when the \"botStatusType\" is set to \"STREAMING\", required to display as \"streaming\".")