From e6583018466c9208ff3b02542a10322b8f0a6408 Mon Sep 17 00:00:00 2001 From: MatteZ02 <47610069+MatteZ02@users.noreply.github.com> Date: Sun, 4 Aug 2019 08:53:04 +0300 Subject: [PATCH] Delete duplicate.js --- commands/duplicate.js | 15 --------------- 1 file changed, 15 deletions(-) delete mode 100644 commands/duplicate.js diff --git a/commands/duplicate.js b/commands/duplicate.js deleted file mode 100644 index 34b9ef53..00000000 --- a/commands/duplicate.js +++ /dev/null @@ -1,15 +0,0 @@ -module.exports = { - name: 'duplicate', - description: 'Duplicate command.', - cooldown: 5, - execute(message, args, client, RichEmbed) { - const serverQueue = client.queue.get(message.guild.id); - if (!serverQueue) return message.channel.send(':x: There is nothing playing.'); - const voiceChannel = message.member.voiceChannel; - if (!voiceChannel) return message.channel.send(':x: I\'m sorry but you need to be in a voice channel to duplicate songs!'); - if (!args[1]) return message.channel.send(':x: You need to enter the position for the song you want to duplicate!') - if (isNaN(args[1])) return msg.channel.send(':x: I\'m sorry, But you need to enter a valid __number__.'); - serverQueue.songs.push(serverQueue.songs[args[1]]) - return msg.channel.send(`Duplicated ${serverQueue.songs[args[1]].title}`) - } -};