From 90749c7f3e36627668ba39ed1ac520945238eb94 Mon Sep 17 00:00:00 2001 From: Hazem Krimi Date: Thu, 14 May 2020 15:12:29 +0100 Subject: [PATCH] modified the earrape command --- commands/music/earrape.js | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/commands/music/earrape.js b/commands/music/earrape.js index c071b67..0fa1251 100644 --- a/commands/music/earrape.js +++ b/commands/music/earrape.js @@ -27,17 +27,12 @@ module.exports = class Play extends Command { }); } - run = async (message) => { + run = async message => { try { if (!message.member.voice.channel) { const embed = new MessageEmbed().setColor('#ff0000').setTitle(':x: You need to join a voice channel first'); return await message.say({ embed }); - } - else if (!message.guild.music.isPlaying) { - const embed = new MessageEmbed().setColor('#ff0000').setTitle(':x: Play something first'); - return message.say({ embed }); - } - else { + } else { message.guild.music.volume = message.guild.music.sfx.earrape ? 1 : 10000; message.guild.music.dispatcher.setVolume(message.guild.music.sfx.earrape ? 1 : 10000); message.guild.music.sfx.earrape = !message.guild.music.sfx.earrape;