Skip to content

Commit

Permalink
adding play delay
Browse files Browse the repository at this point in the history
  • Loading branch information
webdevcody committed Oct 16, 2024
1 parent e667226 commit 087ec77
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions convex/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;

0 comments on commit 087ec77

Please sign in to comment.