From 8314be972f4e0726e7de57f6dce697f71fee776d Mon Sep 17 00:00:00 2001 From: SileNce5k Date: Sat, 21 Jun 2025 13:35:58 +0200 Subject: [PATCH] Slice first character of the argument --- 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 984f560..4c69250 100644 --- a/commands/misc/dl.js +++ b/commands/misc/dl.js @@ -22,7 +22,7 @@ module.exports = { if(args.length > 0){ if(args[0].charAt(0) === '<' && args[0].charAt(args[0].length - 1) === '>'){ - args[0] = args[0].slice(0, args[0].length - 1) + args[0] = args[0].slice(1, args[0].length - 1) } try { url = new URL(args[0]);