From f08eeb435c74eeef7b93e65fe82389f317ef584a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christer=20War=C3=A9n?= Date: Fri, 17 Sep 2021 12:47:00 +0300 Subject: [PATCH] Update play function --- src/client/funcs/play.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/client/funcs/play.js b/src/client/funcs/play.js index 5d2cf19..992f3f1 100644 --- a/src/client/funcs/play.js +++ b/src/client/funcs/play.js @@ -8,13 +8,8 @@ module.exports = async function play(client, interaction, guild, station) { client.funcs.logger('Radio', guild.id + " / " + "Play" + " / " + radio.station.name); message.nowplayingDescription = client.messages.nowplayingDescription.replace("%radio.station.name%", radio.station.name); - if(radio.station.name != radio.station.owner){ - message.nowplayingDescription = message.nowplayingDescription.replace("%radio.station.owner%", radio.station.owner); - } else { - message.nowplayingDescription = message.nowplayingDescription.replace("%radio.station.owner%" + "\n", ""); - } + message.nowplayingDescription = message.nowplayingDescription.replace("%radio.station.owner%" + "\n", radio.station.name != radio.station.owner ? radio.station.owner + "\n" : ""); message.nowplayingDescription = message.nowplayingDescription.replace("%client.funcs.msToTime(completed)%", ""); - message.nowplayingDescription = message.nowplayingDescription.replace("Owner: ", ""); message.nowplayingDescription = message.nowplayingDescription.replace("**", ""); message.nowplayingDescription = message.nowplayingDescription.replace("**", "");