include true or false questions in the trivia using their api

This commit is contained in:
Ayden Jahola 2024-09-05 20:38:47 +01:00
parent 9b94d52c76
commit d3ac6fad8d
No known key found for this signature in database
GPG key ID: 71DD90AE4AE92742

View file

@ -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];