Improve logging for join command

This commit is contained in:
Logan Cusano
2023-03-26 13:57:42 -04:00
parent faec0f2291
commit 403b533a33

View File

@@ -43,6 +43,7 @@ export default async function join({interaction= undefined, guildID= undefined,
audioInstance.on('audio', (buffer) => { audioInstance.on('audio', (buffer) => {
buffer = Buffer.from(buffer); buffer = Buffer.from(buffer);
log.DEBUG("Audio buffer: ", buffer);
const encoded = encoder.encode(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 // 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); voiceConnection.playOpusPacket(encoded);