From f4ffcbebde9f0696a7f29b88378f49b2e3a619f2 Mon Sep 17 00:00:00 2001 From: SileNce5k Date: Sat, 21 Jun 2025 13:55:18 +0200 Subject: [PATCH] Use Date.now() --- commands/misc/dl.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/commands/misc/dl.js b/commands/misc/dl.js index 35c07a1..57a5027 100644 --- a/commands/misc/dl.js +++ b/commands/misc/dl.js @@ -9,8 +9,7 @@ module.exports = { "Usage: dl " ], async execute({message, args}) { - - const downloadsDir = path.resolve(process.cwd(), 'data', 'downloads', Math.floor(new Date).toString()); + const downloadsDir = path.resolve(process.cwd(), 'data', 'downloads', Date.now().toString()); const cookieFilepath = path.resolve(process.cwd(), 'data', 'cookies.txt') if(!fs.existsSync(cookieFilepath)) { message.channel.send("Some dependencies are needed for the command to work properly. Please let the bot's owner know.")