From 151c52df05052792b93156882e8d96eebafe26ea Mon Sep 17 00:00:00 2001 From: Daniel Odendahl Jr Date: Wed, 24 May 2017 13:22:27 +0000 Subject: [PATCH] Fix Quiz --- commands/games/quiz.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/commands/games/quiz.js b/commands/games/quiz.js index 49d2a4e4..2278db0a 100644 --- a/commands/games/quiz.js +++ b/commands/games/quiz.js @@ -23,15 +23,16 @@ module.exports = class QuizCommand extends Command { .get('https://opentdb.com/api.php') .query({ amount: 1, - type: 'boolean' + type: 'boolean', + encode: 'url3986' }); const answer = body.results[0].correct_answer.toLowerCase(); const embed = new RichEmbed() .setTitle('You have **15** seconds to answer this question:') .setDescription(stripIndents` - **Category: ${body.results[0].category}** - **Difficulty: ${body.results[0].difficulty}** - True or False: ${body.results[0].question} + **Category: ${decodeURIComponent(body.results[0].category)}** + **Difficulty: ${decodeURIComponent(body.results[0].difficulty)}** + True or False: ${decodeURIComponent(body.results[0].question)} `); msg.embed(embed); try {