Add category to quiz

This commit is contained in:
Dragon Fire
2020-09-16 16:02:45 -04:00
parent 6a9d91063c
commit 69e7a2762e
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -51,7 +51,7 @@ module.exports = class QuizCommand extends Command {
answers.push(correct);
const shuffled = shuffle(answers);
await msg.reply(stripIndents`
**You have 15 seconds to answer this question.**
**You have 15 seconds. The category is _${decodeURIComponent(body.results[0].category)}_.**
${decodeURIComponent(body.results[0].question)}
${shuffled.map((answer, i) => `**${choices[i]}.** ${answer}`).join('\n')}
`);
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "xiao",
"version": "119.25.1",
"version": "119.25.2",
"description": "Your personal server companion.",
"main": "Xiao.js",
"scripts": {