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";