From 0a3554966656c01e56061f52145ec3b775778485 Mon Sep 17 00:00:00 2001 From: SileNce5k Date: Tue, 17 Jun 2025 02:24:20 +0200 Subject: [PATCH] dl: fix error check --- commands/misc/dl.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/misc/dl.js b/commands/misc/dl.js index 9758004..1de49e8 100644 --- a/commands/misc/dl.js +++ b/commands/misc/dl.js @@ -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;