Skip to content

Commit

Permalink
Banned users should not be able to guess (#1824)
Browse files Browse the repository at this point in the history
  • Loading branch information
Brainicism authored Jan 21, 2024
1 parent ebee0bf commit 86fae83
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/events/client/messageCreate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,10 @@ export default async function messageCreateHandler(
session.gameType !== GameType.HIDDEN &&
!session.isMultipleChoiceMode()
) {
if (State.bannedPlayers.has(message.author.id)) {
return;
}

session.guessSong(messageContext, message.content, message.createdAt);
}
}

0 comments on commit 86fae83

Please sign in to comment.