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())