fix music fixer inside of play function

This commit is contained in:
Lukáš H 2020-06-06 09:57:46 +02:00
parent 47f163dcab
commit d585ffa45c
No known key found for this signature in database
GPG key ID: 52AED802C323B705

View file

@ -69,7 +69,7 @@ exports.getVideoByQuery = async function (client, query, message) {
exports.play = async function (client, message, query, playNext, ignoreQueue) {
const guild = exports.getGuild(message.guild.id)
guild.message = message
// message.channel.startTyping()
if (!message.member.voice.channel && !guild.voiceChannel) {
@ -105,7 +105,7 @@ exports.play = async function (client, message, query, playNext, ignoreQueue) {
guild.skippers = []
guild.fixers = []
// 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 = []
}