feat: moderation tool migration into webdev-bot - #85
Open
michal-skraburski wants to merge 14 commits into
Open
Conversation
…es to match use cases
This has several changes in one commit. Notably: - The spam detection feature has been migrated, the spam detection feature had several imports relinked to their respective webdev-bot/ counterparts - Several tests have been syntactically modified to meet the requirements of the new oxclint tool. - The (now) two caches were migrated into util/cache and their names were adapted to reflect of their exact usage. - The MAX_RULE_TIMEFRAME constant was updated to refer to the correct function instead of the placeholder. It may currently break convention by importing from the features/. - Currently 2 tests fail, one from the advent calendar and one from the newly migrated spam-detection feature. Will follow up in next commit.
a stray console log led me to think the migration broke tests
michal-skraburski
marked this pull request as draft
August 16, 2026 18:17
Member
|
Draft means it is not ready for review. Make it ready for review if you want a review. |
Also, change the convention on this feature to match that of webdev-bot/
michal-skraburski
marked this pull request as ready for review
August 16, 2026 21:02
Author
Sorry about that, I'm still learning the conventions of PR's so I will note this for the future. I've finished the implementation, and I hope I met your expectations. If not, I will happily take your critical assessment and revise the code. Thanks for your help! |
hmd-ali
requested changes
Aug 16, 2026
Co-authored-by: Cake <letsmailali.h@gmail.com>
Co-authored-by: Cake <letsmailali.h@gmail.com>
Co-authored-by: Cake <letsmailali.h@gmail.com>
michal-skraburski
force-pushed
the
moderation-migrate
branch
from
August 16, 2026 21:44
4769ad7 to
13fc65d
Compare
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Moderation Tool Migration
Overview
This is a PR migrating the spam detection and moderation system for the webdev-bot from the moderation-tool bot, addressing the issue found here: #80
What I Did
SPAM_DETECTION_CHANNEL_IDto all environment filesStatus:
DONE - Ready for review and feedback before finalization.
Made with ❤️, written by hand