From 06a477adbb0492be9f410e89c007ef19497ed47f Mon Sep 17 00:00:00 2001 From: Ayden Jahola Date: Tue, 10 Sep 2024 12:30:08 +0100 Subject: [PATCH] trivia: add warning --- commands/games/trivia.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/commands/games/trivia.js b/commands/games/trivia.js index ef44150..86dd8f9 100644 --- a/commands/games/trivia.js +++ b/commands/games/trivia.js @@ -4,6 +4,8 @@ const { decode } = require("html-entities"); const TriviaQuestion = require("../../models/TriviaQuestion"); const Leaderboard = require("../../models/Leaderboard"); +// WARNING: this code is by means not perfect, and it might have questionable implementation but its still a good starting point and under development. feel free to suggest improvements. + const API_INTERVAL = 5000; // 5 seconds const QUESTION_EXPIRY = 30 * 24 * 60 * 60 * 1000; // 1 month const ACTIVE_GAMES = new Set(); // Track users with ongoing trivia