Update nowplaying command

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

View File

@ -15,11 +15,7 @@ module.exports = {
const completed = (radio.playTime); const completed = (radio.playTime);
message.nowplayingDescription = client.messages.nowplayingDescription.replace("%radio.station.name%", 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%" + "\n", radio.station.name != radio.station.owner ? radio.station.owner + "\n" : "");
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("%client.funcs.msToTime(completed)%", client.funcs.msToTime(completed)); message.nowplayingDescription = message.nowplayingDescription.replace("%client.funcs.msToTime(completed)%", client.funcs.msToTime(completed));
const embed = new Discord.MessageEmbed() const embed = new Discord.MessageEmbed()