Update check if no subcommand is supplied
All checks were successful
CI / CI (push) Successful in 1m25s

This commit is contained in:
SileNce5k 2025-05-16 18:54:16 +02:00
parent 22d1cbd570
commit 425e1c3293
Signed by: SileNce
GPG key ID: B0A142BB4291B204

View file

@ -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))))
if(!isNaN(parseTime(args[0], Math.floor(new Date() / 1000)) || !isNaN(args[0])))
sendText = await createTimer(message, args);
break;
}