Fix check if valid first arg on timer command
Some checks failed
CI / CI (push) Has been cancelled

This commit is contained in:
SileNce5k 2025-05-17 11:25:30 +02:00
parent ed77c2aaf1
commit f14eff3f9c
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))) || !isNaN(args[0]))
if(!isNaN(parseTime(args[0], Math.floor(new Date() / 1000))) || !isNaN(Date.parse(args[0])))
sendText = await createTimer(message, args);
break;
}