From 1b83490f189af205a53ca8655223982a4b3c2d43 Mon Sep 17 00:00:00 2001 From: Histmy Date: Tue, 12 Jan 2021 11:17:30 +0100 Subject: [PATCH] bot now actually joins voice after crashing --- modules/vojs.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/vojs.js b/modules/vojs.js index 5022833..76aca08 100644 --- a/modules/vojs.js +++ b/modules/vojs.js @@ -75,7 +75,7 @@ module.exports = (mes, komand, celArgs) => { if (celArgs !== 'potichu') mes.channel.send('<@&591306633196339261> vojs'); if (mes.guild.voice) { - if (mes.guild.voice.channel === channel) break; + if (mes.guild.voice.channel === channel && mes.guild.voice.connection) break; } channel.join()