Repository navigation
Ping Protection V2.5 - #209
Kevinking500 wants to merge 19 commits into
Conversation
|
Lovely failing tests.. Gtg to school now so i'll see later |
|
Holy moly thank Copilot for this ragebaiting of a fix (i'll probs have to do it again later, idk why I focussed on doing ts now) |
|
Idk why I did feat, felt professional ig. Technically this update is now complete, though i'll be doing a code optimization and cleanup (mainly thanks to AI, if it works properly) and seperating it into seperate logic files. I also see some duplicated functions (like the user history for normal and panel activations) |
|
Code has been cleaned up to inside a folder which should make it easier to read and whatnot. I'll fix the tests later on |
|
Hi @SCDerox, since this PR changed quite some features and added some, is the tests system still up-to-date for this module? I honestly have no idea at all how the tests work so i'm just asking you to quickly review if it just needs a fix or an actual update :) |
|
If you change the behavior of the module, you'll likely need to update tests 😄 |
|
Thanks for letting me know- i'll work on it this weekend ^^ |
|
@SCDerox Sorry again, but since I have 0 documentation (and also don't understand, sorry) about tests, would you mind if you could ask claude or whatever to update the tests, would be highly appreciated, thanks! |
|
Now what, this wasted 8% of my Gemini pro usage for it to keep failing |
SCDerox
left a comment
There was a problem hiding this comment.
Thanks for the work on this, the split into core/* and dropping the duplicated subcommand dispatch are nice improvements.
Heads up: this is an AI-assisted first pass over the diff. A manual review by a maintainer will follow, so some points may be wrong or intentional. I checked the suggestions locally: with the test mocks updated as noted inline, all 12 ping-protection suites pass (131 tests).
Blocking:
timeframeDays->customTimeFrameresets existing custom timeframes (inline)- The bot-ping easter egg returns before the protection check, so it bypasses protection (inline)
/ping-protection user historyandactions-historyhave no permission check (inline)- The toggle can miss Discord's 3 second reply window (inline)
- AutoMod is not re-synced when a 24h pause expires (inline)
pingTypeis not backfilled, so pre-upgrade history is ignored by "Mentions"/"Reply pings" rules (inline)config-localizations/en.jsonwas not regenerated, so the new fields (allowProtectionToggle,kickPunishmentMessage,autoDeleteWarningMessage,deleteWarningMessageTime,pingsType,customTimeFrame) get no translations. Please runnode config-localizations/generate-files.jsand commit the result.
…s for other modules, you're welcome lol)
Ping protection V2.5 - The best aimed ping protection system, now improved
Changelog:
AI usage:
This will likely be the last update of this module as you know my priorities shifted, though unless crucial (big bug reports etc) things appear.