From c532eb726cf31a308c40124f0259405a77c46996 Mon Sep 17 00:00:00 2001 From: Daniel Odendahl Jr Date: Thu, 17 Aug 2017 19:31:46 +0000 Subject: [PATCH] Fix Quiz Bug Once and For All --- commands/games/quiz.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/games/quiz.js b/commands/games/quiz.js index 34b380a8..5886bdd6 100644 --- a/commands/games/quiz.js +++ b/commands/games/quiz.js @@ -37,7 +37,7 @@ module.exports = class QuizCommand extends Command { type, encode: 'url3986' }); - if (!body.results.length) return msg.say('Oh no, a question could not be fetched. Try again later!'); + if (!body.results) return msg.say('Oh no, a question could not be fetched. Try again later!'); const answer = decodeURIComponent(body.results[0].correct_answer.toLowerCase()); const embed = new MessageEmbed() .setTitle('You have 15 seconds to answer this question:')