From 087ec77268a6759f79b03a8a2132abcbbf0e21cf Mon Sep 17 00:00:00 2001 From: Cody Seibert Date: Wed, 16 Oct 2024 17:27:54 -0400 Subject: [PATCH] adding play delay --- convex/constants.ts | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/convex/constants.ts b/convex/constants.ts index 4fe7db2..eb22bea 100644 --- a/convex/constants.ts +++ b/convex/constants.ts @@ -13,6 +13,9 @@ export const AI_MODEL_IDS = AI_MODELS.map((model) => model.model); // how long between each level when the AI models start playing. // spacing out the levels to make it easier to watch in the games list and reduce ai token usage. -export const PLAY_DELAY = process.env.PLAY_DELAY - ? parseInt(process.env.PLAY_DELAY) - : 10_000; +export const PLAY_DELAY = + process.env.NODE_ENV === "development" + ? 0 + : process.env.PLAY_DELAY + ? parseInt(process.env.PLAY_DELAY) + : 10_000;