magneum / youtube-exec

🔥🎶YouTube-Exec: Unleash the Power of YouTube Downloads!
https://bit.ly/magneum
MIT License
19 stars 2 forks source link

Lack of information on how to block API output. #6

Open alexanderITK opened 11 months ago

alexanderITK commented 11 months ago

It would be interesting to have a way to block the API from generating an output.

ranm = getRandom('')
try {
   reply(mess.wait)
   await dlAudio({
       url: `${args[0]}`,
       folder: "./ytdl",
       filename: `${ranm}`,
       quality: "best",
       log: false,
    });
    buffer = `../ytdl/${ranm}.mp3`
    const videomess = await sock.sendMessage(from, { audio: buffer, mimetype: 'audio/mp4'})
} catch (err) {
   console.log(err)
   reply('*ERRO*')
}