No double-counting, strict sequence validation, and reset behavior.
Reject a count if the author matches the last valid counter.
Use:
config[guildId].lastUserId
message.author.id
Why: it prevents solo-streaking and keeps the game competitive.
A valid message must evaluate to the next expected number.
If the evaluated number is wrong, the engine resets.
Any incorrect number in sequence resets the count to 1.
1
Why: the reset is the enforcement mechanism.
It also keeps state simple and fast.
Last updated 11 minutes ago