Improve logging for join command
This commit is contained in:
@@ -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);
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user