Fix music in v1 woomy

This commit is contained in:
FLGX 2020-04-08 11:04:52 +02:00 committed by GitHub
parent b81db48f7b
commit c7d3ecd6da
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -229,7 +229,16 @@ module.exports = client => {
}; };
id = item.id.videoId; 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) if(client.music.getGuild(message.guild.id).queue.length == 0 || bypassQueue)
{ {
let meta = await client.music.getMeta(id); let meta = await client.music.getMeta(id);