mirror of
https://github.com/warengroup/eximiabots-radiox.git
synced 2024-11-10 02:20:18 +00:00
Updated play.js
This commit is contained in:
parent
42591791c3
commit
1358787793
@ -168,10 +168,10 @@ async function play(interaction, guild, client, url, Discord) {
|
|||||||
message.nowplayingDescription = message.nowplayingDescription.replace("%client.funcs.msToTime(completed)%", "--:--");
|
message.nowplayingDescription = message.nowplayingDescription.replace("%client.funcs.msToTime(completed)%", "--:--");
|
||||||
|
|
||||||
const embed = new Discord.MessageEmbed()
|
const embed = new Discord.MessageEmbed()
|
||||||
.setTitle("RadioX")
|
.setTitle(client.user.username)
|
||||||
.setThumbnail("https://cdn.discordapp.com/emojis/" + client.messageEmojis["play"].replace(/[^0-9]+/g, ''))
|
.setThumbnail("https://cdn.discordapp.com/emojis/" + client.messageEmojis["play"].replace(/[^0-9]+/g, ''))
|
||||||
.setColor(client.config.embedColor)
|
.setColor(client.config.embedColor)
|
||||||
.setDescription(message.nowplayingDescription)
|
.addField(client.messages.nowplayingTitle, message.nowplayingDescription, true)
|
||||||
.setFooter(client.messages.footerText, "https://cdn.discordapp.com/emojis/" + client.messageEmojis["eximiabots"].replace(/[^0-9]+/g, ''));
|
.setFooter(client.messages.footerText, "https://cdn.discordapp.com/emojis/" + client.messageEmojis["eximiabots"].replace(/[^0-9]+/g, ''));
|
||||||
|
|
||||||
if(!radio.message){
|
if(!radio.message){
|
||||||
@ -180,14 +180,12 @@ async function play(interaction, guild, client, url, Discord) {
|
|||||||
radio.message.edit({ embeds: [embed] });
|
radio.message.edit({ embeds: [embed] });
|
||||||
}
|
}
|
||||||
|
|
||||||
setTimeout(function() {
|
message.play = client.messages.play.replace("%radio.station.name%", radio.station.name);
|
||||||
message.play = client.messages.play.replace("%radio.station.name%", radio.station.name);
|
|
||||||
|
|
||||||
interaction.reply({
|
interaction.reply({
|
||||||
content: client.messageEmojis["play"] + message.play,
|
content: client.messageEmojis["play"] + message.play,
|
||||||
ephemeral: true
|
ephemeral: true
|
||||||
});
|
});
|
||||||
}, 1500)
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user