forked from embee/woomy
fix music fixer inside of play function
This commit is contained in:
parent
47f163dcab
commit
d585ffa45c
1 changed files with 2 additions and 2 deletions
|
@ -69,7 +69,7 @@ exports.getVideoByQuery = async function (client, query, message) {
|
||||||
exports.play = async function (client, message, query, playNext, ignoreQueue) {
|
exports.play = async function (client, message, query, playNext, ignoreQueue) {
|
||||||
const guild = exports.getGuild(message.guild.id)
|
const guild = exports.getGuild(message.guild.id)
|
||||||
guild.message = message
|
guild.message = message
|
||||||
|
|
||||||
// message.channel.startTyping()
|
// message.channel.startTyping()
|
||||||
|
|
||||||
if (!message.member.voice.channel && !guild.voiceChannel) {
|
if (!message.member.voice.channel && !guild.voiceChannel) {
|
||||||
|
@ -105,7 +105,7 @@ exports.play = async function (client, message, query, playNext, ignoreQueue) {
|
||||||
guild.skippers = []
|
guild.skippers = []
|
||||||
guild.fixers = []
|
guild.fixers = []
|
||||||
// music not playing, something is in queue
|
// music not playing, something is in queue
|
||||||
} else if (!guild.playing && !guild.dispatcher && guild.queue.length > 0) {
|
} else if ((!guild.playing || !guild.dispatcher) && guild.queue.length > 0) {
|
||||||
guild.queue = []
|
guild.queue = []
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue