From 3a229a58997231a408d4c8cd987c5518955fb144 Mon Sep 17 00:00:00 2001 From: Ayden Jahola Date: Fri, 6 Sep 2024 01:23:00 +0100 Subject: [PATCH] trivia: add more categories --- README.md | 2 +- commands/fun/trivia.js | 14 +++++++++++++- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 7c8ed13..deda296 100644 --- a/README.md +++ b/README.md @@ -89,7 +89,7 @@ node bot.js ### Fun Commands -- **/trivia**: Starts a trivia game with video game-themed, Anime & Manga, Computers, Board Games, Comics, Cartoons & Animations, Film, General Knowledge and Science & Nature (more to come soon!) questions. Players have 30 seconds to answer. +- **/trivia**: Starts a trivia game with video game-themed, Anime & Manga, Computers, Board Games, Comics, Cartoons & Animations, Film, General Knowledge, Science, Animals, Music, History and Geography & Nature (more to come soon!) questions. Players have 30 seconds to answer. - Accepts both number answers (1-4) **or** the correct answer - for example: diff --git a/commands/fun/trivia.js b/commands/fun/trivia.js index 37a92cf..0b3c2be 100644 --- a/commands/fun/trivia.js +++ b/commands/fun/trivia.js @@ -28,7 +28,11 @@ module.exports = { { name: "Comics", value: "29" }, { name: "Cartoons & Animations", value: "32" }, { name: "Film", value: "11" }, - { name: "Science & Nature", value: "17" } + { name: "Science & Nature", value: "17" }, + { name: "Animals", value: "27" }, + { name: "Music", value: "12" }, + { name: "History", value: "23" }, + { name: "Geography", value: "22" } ) ), @@ -72,6 +76,14 @@ module.exports = { return "General Knowledge"; case "17": return "Science & Nature"; + case "27": + return "Animals"; + case "12": + return "Music"; + case "23": + return "History"; + case "22": + return "Geography"; default: return "Video Games"; }