mirror of
https://github.com/warengroup/eximiabots-radiox.git
synced 2024-11-13 00:10:21 +00:00
Hide owner in now playing when station name is same in play command
This commit is contained in:
parent
86510a8871
commit
3029a8a653
@ -11,7 +11,11 @@ module.exports = async function play(client, interaction, guild, station) {
|
|||||||
client.funcs.logger('Radio', guild.id + " / " + "Play" + " / " + radio.station.name);
|
client.funcs.logger('Radio', guild.id + " / " + "Play" + " / " + radio.station.name);
|
||||||
|
|
||||||
message.nowplayingDescription = client.messages.nowplayingDescription.replace("%radio.station.name%", radio.station.name);
|
message.nowplayingDescription = client.messages.nowplayingDescription.replace("%radio.station.name%", radio.station.name);
|
||||||
message.nowplayingDescription = message.nowplayingDescription.replace("%radio.station.owner%", radio.station.owner);
|
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)%", "");
|
message.nowplayingDescription = message.nowplayingDescription.replace("%client.funcs.msToTime(completed)%", "");
|
||||||
message.nowplayingDescription = message.nowplayingDescription.replace("Owner: ", "");
|
message.nowplayingDescription = message.nowplayingDescription.replace("Owner: ", "");
|
||||||
message.nowplayingDescription = message.nowplayingDescription.replace("**", "");
|
message.nowplayingDescription = message.nowplayingDescription.replace("**", "");
|
||||||
|
Loading…
Reference in New Issue
Block a user