dl: fix error check
All checks were successful
CI / CI (push) Successful in 1m25s

This commit is contained in:
SileNce5k 2025-06-17 02:24:20 +02:00
parent 9d0eb60b81
commit 0a35549666
Signed by: SileNce
GPG key ID: B0A142BB4291B204

View file

@ -28,7 +28,7 @@ module.exports = {
return message.channel.send("No url provided")
}
if(this.executeCommand(`yt-dlp "${url}" -P ${downloadsDir}`).error === false){
if(this.executeCommand(`yt-dlp "${url}" -P ${downloadsDir}`).error){
message.channel.send("An error occured when executing the command");
this.cleanUp(downloadsDir);
return;