Skip to content

Commit

Permalink
There were no bugs in ba sing se (#57)
Browse files Browse the repository at this point in the history
* There were no bugs in ba sing se

* id-hint fix - actually tested this time
  • Loading branch information
Aegyo authored Apr 9, 2024
1 parent 2781a67 commit 6a3bfc6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions other/quiz/quiz.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,12 @@ const newQuiz = async (guild, reoccur = false) => {

const incorrectFilter = quiz_channel.createMessageCollector({ filter: (m) => !filter(m), time: time_limit});
incorrectFilter.on('collect', async m => {
const user = m.author;
// stop doing emoji when we're already done pls thx you
if (finished && (winners.has(user.id) || m.createdTimestamp - finished > ANSWER_TIME_LIMIT)) {
return;
}

const reaction = quiz.incorrectReaction?.(m.content);

if (reaction) {
Expand Down

0 comments on commit 6a3bfc6

Please sign in to comment.