Add anti-spam for /ohno command and refactor handlers#136
Add anti-spam for /ohno command and refactor handlers#136Ayushkiller wants to merge 1 commit intoFish-Community:masterfrom
Conversation
|
@BalaM314 Review this and maybe you can tag me on things you want to get fixed |
|
Ps i will work on issues only tagged in as currently there are multiple issues and many are spammy or are not properly made |
|
@BalaM314 Do you use any specific formatter? |
Introduces anti-spam tracking for the /ohno command, kicking players who excessively use it and warning at lower thresholds. Refactors command handler argument destructuring for consistency, improves area tile history limit logic, and updates test/build scripts in package.json. Also includes minor code style and logic improvements throughout playerCommands.
|
how thin is the tracking window- |
|
@spentcud i did like You can use /ohno up to 4 times in 30 seconds with no warning. |
|
Maybe soeme one else can give me a good rate but this current one . |
yeah uh that feels way too low |
Closes #108
Summary
Implements automatic kick functionality for players spamming the
/ohnocommand, preventing abuse of the command.Changes Made
/ohnocommand usage per playerFiles Modified
src/playerCommands.ts: Added spam prevention logic for/ohnocommand handlerbuild/scripts/playerCommands.js: Updated compiled outputbuild/scripts/main.js: Minor build updatespackage.json: Improved test and build scripts.gitignore: Added.kirodirectoryImplementation Details
Testing
Tested spam prevention by simulating multiple
/ohnocommand calls.