From b8c1816b1cd6dccbaafa550be87f813e91929bdf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christer=20War=C3=A9n?= Date: Sun, 22 Aug 2021 20:51:02 +0300 Subject: [PATCH] Added logger to voiceStateUpdate.js --- src/client/events/voiceStateUpdate.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/client/events/voiceStateUpdate.js b/src/client/events/voiceStateUpdate.js index bd93041..e1809d5 100644 --- a/src/client/events/voiceStateUpdate.js +++ b/src/client/events/voiceStateUpdate.js @@ -18,7 +18,7 @@ module.exports = { client.funcs.statisticsUpdate(client, newState.guild, radio); radio.connection?.destroy(); radio.audioPlayer?.stop(); - console.log("[Radio] Stream stopped" + " / " + newState.guild.id); + client.funcs.logger('Radio', 'Stream stopped' + " / " + newState.guild.id); return client.radio.delete(newState.guild.id); } @@ -40,7 +40,7 @@ module.exports = { client.funcs.statisticsUpdate(client, newState.guild, radio); radio.connection?.destroy(); radio.audioPlayer?.stop(); - console.log("[Radio] Stream stopped" + " / " + newState.guild.id); + client.funcs.logger('Radio', 'Stream stopped' + " / " + newState.guild.id); client.radio.delete(oldState.guild.id); } return; @@ -59,7 +59,7 @@ module.exports = { client.funcs.statisticsUpdate(client, newState.guild, radio); radio.connection?.destroy(); radio.audioPlayer?.stop(); - console.log("[Radio] Stream stopped" + " / " + newState.guild.id); + client.funcs.logger('Radio', 'Stream stopped' + " / " + newState.guild.id); client.radio.delete(newState.guild.id); } }, 60000);