This commit is contained in:
MatteZ02 2020-03-02 21:49:07 +02:00
parent a96305e807
commit d77c82c527
3 changed files with 0 additions and 37 deletions

View File

@ -15,7 +15,6 @@ module.exports = {
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")}\``)
.setFooter(`Queued by ${radio.songs[0].author.tag}`)
.setURL(radio.songs[0].url) .setURL(radio.songs[0].url)
.setThumbnail(thumbnail._rejectionHandler0) .setThumbnail(thumbnail._rejectionHandler0)
.setColor(client.config.embedColor) .setColor(client.config.embedColor)

View File

@ -1,18 +0,0 @@
module.exports = {
name: 'pause',
alias: 'none',
usage: '',
description: 'Pause the currently playing music.',
onlyDev: false,
permission: 'MANAGE_MESSAGES',
category: 'music',
execute(msg, args, client, Discord, prefix, command) {
const radio = client.radio.get(msg.guild.id);
if (client.funcs.check(client, msg, command)) {
if (radio.paused) return msg.channel.send('<:redx:674263474704220182> The music is already paused!');
radio.paused = true;
radio.connection.dispatcher.pause(true);
return msg.channel.send('<:pause:674685548610322462> Paused the music!');
}
}
};

View File

@ -1,18 +0,0 @@
module.exports = {
name: 'resume',
alias: 'none',
usage: '',
description: 'Resume the paused music.',
onlyDev: false,
permission: 'MANAGE_MESSAGES',
category: 'music',
execute(msg, args, client, Discord, prefix, command) {
const radio = client.radio.get(msg.guild.id);
if (client.funcs.check(client, msg, command)) {
if (!radio.paused) return msg.channel.send('<:redx:674263474704220182> The music in not paused!');
radio.paused = false;
radio.connection.dispatcher.resume(true);
return msg.channel.send('<:resume:674685585478254603> Resumed the music!');
}
}
};