mirror of
https://github.com/aydenjahola/discord-multipurpose-bot.git
synced 2024-11-22 08:45:55 +00:00
trivia: add computers category
This commit is contained in:
parent
caf133207f
commit
06934db8b9
1 changed files with 7 additions and 2 deletions
|
@ -21,7 +21,8 @@ module.exports = {
|
||||||
.setRequired(true)
|
.setRequired(true)
|
||||||
.addChoices(
|
.addChoices(
|
||||||
{ name: "Video Games", value: "15" },
|
{ name: "Video Games", value: "15" },
|
||||||
{ name: "Anime & Manga", value: "31" }
|
{ name: "Anime & Manga", value: "31" },
|
||||||
|
{ name: "Computers", value: "18" }
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
|
|
||||||
|
@ -46,7 +47,11 @@ module.exports = {
|
||||||
try {
|
try {
|
||||||
const categoryId = interaction.options.getString("category");
|
const categoryId = interaction.options.getString("category");
|
||||||
const categoryName =
|
const categoryName =
|
||||||
categoryId === "15" ? "Video Games" : "Anime & Manga";
|
categoryId === "15"
|
||||||
|
? "Video Games"
|
||||||
|
: categoryId === "31"
|
||||||
|
? "Anime & Manga"
|
||||||
|
: "Computers";
|
||||||
|
|
||||||
// Fetch a trivia question from the cache or the API
|
// Fetch a trivia question from the cache or the API
|
||||||
let triviaQuestion = await TriviaQuestion.findOne({
|
let triviaQuestion = await TriviaQuestion.findOne({
|
||||||
|
|
Loading…
Reference in a new issue