From d3ac6fad8de52ef7916cc0b9b46b69983371c6f7 Mon Sep 17 00:00:00 2001 From: Ayden Jahola Date: Thu, 5 Sep 2024 20:38:47 +0100 Subject: [PATCH] include true or false questions in the trivia using their api --- commands/fun/trivia.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/fun/trivia.js b/commands/fun/trivia.js index b06720e..b9fed4a 100644 --- a/commands/fun/trivia.js +++ b/commands/fun/trivia.js @@ -29,7 +29,7 @@ module.exports = { if (!triviaQuestion || Date.now() - lastApiCall >= API_INTERVAL) { // Fetch a new trivia question from OTDB const response = await axios.get( - "https://opentdb.com/api.php?amount=1&category=15&type=multiple" // Category 15 is for Video Games + "https://opentdb.com/api.php?amount=1&category=15" // Category 15 is for Video Games ); triviaQuestion = response.data.results[0];