From c7d3ecd6da26e16fefd4b87e5c97d1bc3a0423b2 Mon Sep 17 00:00:00 2001 From: FLGX Date: Wed, 8 Apr 2020 11:04:52 +0200 Subject: [PATCH] Fix music in v1 woomy --- src/modules/functions.js | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/modules/functions.js b/src/modules/functions.js index a30dd4b..f8c552c 100644 --- a/src/modules/functions.js +++ b/src/modules/functions.js @@ -229,7 +229,16 @@ module.exports = client => { }; id = item.id.videoId; } - + + // music "playing", nothing in queue + if((client.music.getGuild(message.guild.id).playing || client.music.getGuild(message.guild.id).dispatcher) && client.music.getGuild(message.guild.id).queue.length == 0) { + client.music.getGuild(message.guild.id).playing = false; + client.music.getGuild(message.guild.id).dispatcher = null; + // music not playing, something is in queue + } else if(!client.music.getGuild(message.guild.id).playing && !client.music.getGuild(message.guild.id).dispatcher && client.music.getGuild(message.guild.id).queue.length > 0) { + client.music.getGuild(message.guild.id).queue = []; + }; + if(client.music.getGuild(message.guild.id).queue.length == 0 || bypassQueue) { let meta = await client.music.getMeta(id);