From a9cafad442f8ac337e633dc2765506a2351d0c10 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?lillie=E2=84=A2?= <66176496+lilliepad1@users.noreply.github.com> Date: Thu, 11 Jul 2024 10:49:20 -0400 Subject: [PATCH] im stupid --- src/main/java/com/jagrosh/jmusicbot/BotConfig.java | 2 +- src/main/java/com/jagrosh/jmusicbot/JMusicBot.java | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/jagrosh/jmusicbot/BotConfig.java b/src/main/java/com/jagrosh/jmusicbot/BotConfig.java index c44dccd90..8815635db 100644 --- a/src/main/java/com/jagrosh/jmusicbot/BotConfig.java +++ b/src/main/java/com/jagrosh/jmusicbot/BotConfig.java @@ -277,7 +277,7 @@ public String getSearching() public String getPiped() { - return pipedURL; + return "NONE".equalsIgnoreCase(pipedURL) ? null : pipedURL; } public Activity getGame() diff --git a/src/main/java/com/jagrosh/jmusicbot/JMusicBot.java b/src/main/java/com/jagrosh/jmusicbot/JMusicBot.java index d06153b99..e53e50b8e 100644 --- a/src/main/java/com/jagrosh/jmusicbot/JMusicBot.java +++ b/src/main/java/com/jagrosh/jmusicbot/JMusicBot.java @@ -182,6 +182,7 @@ private static CommandClient createCommandClient(BotConfig config, SettingsManag CommandClientBuilder cb = new CommandClientBuilder() .setPrefix(config.getPrefix()) .setAlternativePrefix(config.getAltPrefix()) + .setPipedURL(config.getPiped()) .setOwnerId(Long.toString(config.getOwnerId())) .setEmojis(config.getSuccess(), config.getWarning(), config.getError()) .setHelpWord(config.getHelp())