From f14eff3f9ce88615deafc63062ac24b6bee7977f Mon Sep 17 00:00:00 2001 From: SileNce5k Date: Sat, 17 May 2025 11:25:30 +0200 Subject: [PATCH] Fix check if valid first arg on timer command --- commands/misc/timer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/misc/timer.js b/commands/misc/timer.js index 472af1b..522a9aa 100644 --- a/commands/misc/timer.js +++ b/commands/misc/timer.js @@ -38,7 +38,7 @@ module.exports = { sendText = "Please specify a time, and a message to send after the timer has finished"; break; } - if(!isNaN(parseTime(args[0], Math.floor(new Date() / 1000))) || !isNaN(args[0])) + if(!isNaN(parseTime(args[0], Math.floor(new Date() / 1000))) || !isNaN(Date.parse(args[0]))) sendText = await createTimer(message, args); break; }