forked from embee/woomy
Fix music in v1 woomy
This commit is contained in:
parent
b81db48f7b
commit
c7d3ecd6da
1 changed files with 10 additions and 1 deletions
|
@ -230,6 +230,15 @@ 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);
|
||||||
|
|
Loading…
Reference in a new issue