From 1e26e3bb959ed541ccc7ceb45dfa57f4a3d14153 Mon Sep 17 00:00:00 2001 From: MatteZ02 <47610069+MatteZ02@users.noreply.github.com> Date: Wed, 4 Mar 2020 23:19:02 +0200 Subject: [PATCH] Update voiceStateUpdate.js --- events/voiceStateUpdate.js | 7 ------- 1 file changed, 7 deletions(-) diff --git a/events/voiceStateUpdate.js b/events/voiceStateUpdate.js index 9f07f83f..62e6b63d 100644 --- a/events/voiceStateUpdate.js +++ b/events/voiceStateUpdate.js @@ -4,18 +4,14 @@ module.exports = { let change = false; const serverQueue = client.queue.get(newState.guild.id); if (!serverQueue) return; - console.log('vocestate') if (newState.member.id === client.user.id && oldState.member.id === client.user.id) { - console.log('cocecece') if (newState.member.voice.channel === null) { - console.log('discoennect') serverQueue.songs = []; serverQueue.looping = false; serverQueue.endReason = "manual disconnect"; return client.queue.delete(newState.guild.id); } if (newState.member.voice.channel !== serverQueue.voiceChannel) { - console.log('wrong channe') change = true; serverQueue.voiceChannel = newState.member.voice.channel; serverQueue.connection = newState.connection; @@ -23,12 +19,9 @@ module.exports = { } if (oldState.channel === null) return; if (oldState.channel.members.size === 1 && oldState.channel === serverQueue.voiceChannel || change) { - console.log('left alone') setTimeout(() => { - console.log('timeout') if (!serverQueue) return; if (serverQueue.voiceChannel.members.size === 1) { - console.log('still alone') serverQueue.songs = []; serverQueue.looping = false; serverQueue.endReason = "Timeout";