mirror of
https://github.com/warengroup/eximiabots-radiox.git
synced 2024-11-09 23:00:18 +00:00
updastye
This commit is contained in:
parent
f8691b1892
commit
f4cc507621
@ -10,11 +10,10 @@ module.exports = {
|
|||||||
if (!radio) return msg.channel.send('<:redx:674263474704220182> There is nothing playing.');
|
if (!radio) return msg.channel.send('<:redx:674263474704220182> There is nothing playing.');
|
||||||
if (!radio.playing) return msg.channel.send('<:redx:674263474704220182> There is nothing playing.');
|
if (!radio.playing) return msg.channel.send('<:redx:674263474704220182> There is nothing playing.');
|
||||||
radio.time = radio.connection.dispatcher.streamTime;
|
radio.time = radio.connection.dispatcher.streamTime;
|
||||||
let completed = (radio.time.toFixed(0));
|
const completed = (radio.time.toFixed(0));
|
||||||
const embed = new Discord.MessageEmbed()
|
const embed = new Discord.MessageEmbed()
|
||||||
.setTitle("__Now playing__")
|
.setTitle("__Now playing__")
|
||||||
.setDescription(`<a:aNotes:674602408105476106>**Now playing:** ${radio.url}\n\`${client.funcs.msToTime(completed, "hh:mm:ss")}\``)
|
.setDescription(`<a:aNotes:674602408105476106>**Now playing:** ${radio.url}\n\`${client.funcs.msToTime(completed, "hh:mm:ss")}\``)
|
||||||
/*.setThumbnail(thumbnail._rejectionHandler0)*/
|
|
||||||
.setColor(client.config.embedColor)
|
.setColor(client.config.embedColor)
|
||||||
return msg.channel.send(embed);
|
return msg.channel.send(embed);
|
||||||
}
|
}
|
||||||
|
@ -24,7 +24,8 @@ module.exports = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (radio) {
|
if (radio) {
|
||||||
radio.connection.dispatcher.end();
|
radio.connection.dispatcher.destroy();
|
||||||
|
client.funcs.play(msg.guild, client, url);
|
||||||
}
|
}
|
||||||
|
|
||||||
const construct = {
|
const construct = {
|
||||||
|
@ -7,7 +7,9 @@ module.exports = {
|
|||||||
category: 'music',
|
category: 'music',
|
||||||
execute(msg, args, client, Discord, prefix, command) {
|
execute(msg, args, client, Discord, prefix, command) {
|
||||||
const radio = client.radio.get(msg.guild.id);
|
const radio = client.radio.get(msg.guild.id);
|
||||||
radio.connection.dispatcher.end();
|
radio.connection.dispatcher.destroy();
|
||||||
|
radio.voiceChannel.leave();
|
||||||
|
client.radio.delete(guild.id);
|
||||||
msg.channel.send('<:stop:674685626108477519> Stopped the music!');
|
msg.channel.send('<:stop:674685626108477519> Stopped the music!');
|
||||||
}
|
}
|
||||||
};
|
};
|
Loading…
Reference in New Issue
Block a user