Update play function

This commit is contained in:
Christer Warén 2021-09-17 12:47:00 +03:00
parent 7a8c10c6d4
commit f08eeb435c

View File

@ -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("**", "");