From e68bb41960a52ada53cb2041eb278cf0b96540c4 Mon Sep 17 00:00:00 2001 From: SileNce5k Date: Sat, 21 Jun 2025 15:35:26 +0200 Subject: [PATCH 1/2] Fix typo --- 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 9104f7a..6a12ab9 100644 --- a/commands/misc/dl.js +++ b/commands/misc/dl.js @@ -39,7 +39,7 @@ module.exports = { const originalMessage = await message.channel.send("Downloading video...") if(this.executeCommand("yt-dlp", [url, "-P", downloadsDir, "--cookies", cookieFilepath]).error){ - originalMessage.edit("An error occured when downloading the video."); + originalMessage.edit("An error occurred when downloading the video."); this.cleanUp(downloadsDir); return; } From c6ef14ee70fe10f712a627d96ac1fb687d981ae3 Mon Sep 17 00:00:00 2001 From: SileNce5k Date: Sat, 21 Jun 2025 15:40:16 +0200 Subject: [PATCH 2/2] Fix verbose flag not working --- 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 6a12ab9..60d209b 100644 --- a/commands/misc/dl.js +++ b/commands/misc/dl.js @@ -68,7 +68,7 @@ module.exports = { fs.rmSync(downloadsDir, {force: true, recursive: true}); }, - executeCommand(command, commandArgs, {verbose = false}) { + executeCommand(command, commandArgs, verbose=false) { if (typeof command !== 'string' || !Array.isArray(commandArgs)) return { error: true }; console.log("Executing:", command, commandArgs.join(" ")); try {