Fix Quiz Bug Once and For All

This commit is contained in:
Daniel Odendahl Jr
2017-08-17 19:31:46 +00:00
parent 9379513971
commit c532eb726c
+1 -1
View File
@@ -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:')