From 7544e9a7ddc46126649101b3fb2d4b7d987901ff Mon Sep 17 00:00:00 2001 From: Holly Date: Wed, 23 Feb 2022 05:33:03 +0000 Subject: [PATCH] Use isNaN here instead --- server/BotCommandHandler.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/BotCommandHandler.js b/server/BotCommandHandler.js index 5972fa9..9f0066b 100644 --- a/server/BotCommandHandler.js +++ b/server/BotCommandHandler.js @@ -109,7 +109,7 @@ module.exports = function(User, Message, Stream, IsCalledFromMultiplayer = false switch (args[1]) { case "start": if (args.length > 3) return; - if (`${parseInt(args[2])}` != "NaN") { + if (!isNaN(args[2])) { User.currentMatch.matchStartCountdownActive = true; let countdown = parseInt(args[2]); let intervalRef = setInterval(() => {