Skip to content

Commit bc5e179

Browse files
committed
trivia
1 parent 2c89afb commit bc5e179

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

commands/trivia.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ async function play(message, bot, send, trivia) {
111111
if (guess === null) return false;
112112
if (guessed[m.author.id]) return false;
113113
guessed[m.author.id] = true;
114-
if (checkAnswer(correct_answer, answers, guess)) {
114+
if (checkAnswer(correct_answer, incorrect_answers, guess)) {
115115
collector.stop("WINNED")
116116
win(bot, message, m.author, worth)
117117
}
@@ -156,7 +156,6 @@ function checkAnswer(correct, answers, input) {
156156
let a = answers[input + 1];
157157
if (!a) return false;
158158
return a === correct;
159-
160159
}
161160

162161
function genUrl(d, c) {

0 commit comments

Comments
 (0)