Anti-cheat & sequence rules

No double-counting, strict sequence validation, and reset behavior.

No double-counting

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.

Sequence validation

A valid message must evaluate to the next expected number.

If the evaluated number is wrong, the engine resets.

Engine reset rule

Any incorrect number in sequence resets the count to 1.

Why: the reset is the enforcement mechanism.

It also keeps state simple and fast.

Last updated