-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: 🚸 add penalty cost if spamming messages
If a user sends messages too fast, it will give them a penalty defined by "penaltyAmount" so that users will lose credits by spamming. Spam rate is set by "maxMessageAmount" which is how many messages a user is allowed to send during "checkTime"
- Loading branch information
1 parent
3875c9e
commit 8c1c0af
Showing
1 changed file
with
33 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters