diff --git a/Client/controllers/commandController.js b/Client/controllers/commandController.js index 89ab0a4..66043a9 100644 --- a/Client/controllers/commandController.js +++ b/Client/controllers/commandController.js @@ -44,7 +44,7 @@ exports.join = async function join({interaction= undefined, guildID= undefined, log.VERBOSE("Audio Instance: ", audioInstance); audioInstance.on('data', buffer => { - //buffer = Buffer.from(buffer); + buffer = Buffer.from(buffer); log.VERBOSE("Audio buffer: ", buffer); const encodedBuffer = 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