mirror of
https://github.com/warengroup/eximiabots-radiox.git
synced 2024-12-23 05:53:18 +00:00
Hide owner in now playing when station name is same in nowplaying command
This commit is contained in:
parent
e85b864170
commit
86510a8871
@ -15,7 +15,11 @@ module.exports = {
|
||||
const completed = (radio.playTime);
|
||||
|
||||
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("%client.funcs.msToTime(completed)%", client.funcs.msToTime(completed));
|
||||
|
||||
const embed = new Discord.MessageEmbed()
|
||||
|
Loading…
Reference in New Issue
Block a user