From 403b533a33003efee210bea0d091cee06ff05ec9 Mon Sep 17 00:00:00 2001 From: Logan Cusano Date: Sun, 26 Mar 2023 13:57:42 -0400 Subject: [PATCH] Improve logging for join command --- Client/discord-bot/commands/join.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Client/discord-bot/commands/join.js b/Client/discord-bot/commands/join.js index b3de8f1..2262e3a 100644 --- a/Client/discord-bot/commands/join.js +++ b/Client/discord-bot/commands/join.js @@ -43,7 +43,8 @@ export default async function join({interaction= undefined, guildID= undefined, audioInstance.on('audio', (buffer) => { buffer = Buffer.from(buffer); - const encoded = encoder.encode(buffer); + log.DEBUG("Audio buffer: ", buffer); + const encoded = encoder.encode(buffer); // TODO Add a function here to check the volume of either buffer and only play audio to discord when there is audio to be played voiceConnection.playOpusPacket(encoded); })