{{ message }}
Feature: AntiSpam module - #202
Merged
Merged
Conversation
emyfops
marked this pull request as draft
December 21, 2025 00:22
Member
Contributor
Author
Why ? |
Member
|
It may trigger some code inspections and mark our repo as dangerous or some shit. also it broke AI suggestions didnt it xD |
Contributor
Author
|
idk github ai works |
Contributor
Author
|
ok clanker |
Member
|
It actually brings some good points |
|
clanker got marked as spam |
cattyngmd
reviewed
Dec 21, 2025
| val hex = sequenceOf("\\s([A-Fa-f0-9]+){5,10}$").map { Regex(it) } | ||
| val colors = sequenceOf(">", "`").map { Regex(it) } | ||
|
|
||
| val fancyToAscii = mapOf('ᴀ' to 'a', 'ʙ' to 'b', 'c' to 'c', 'ᴅ' to 'd', 'ᴇ' to 'e', 'ꜰ' to 'f', 'ɢ' to 'g', 'ʜ' to 'h', 'ɪ' to 'i', 'ᴊ' to 'j', 'ᴋ' to 'k', 'ʟ' to 'l', 'ᴍ' to 'm', 'ɴ' to 'n', 'ᴏ' to 'o', 'ᴩ' to 'p', 'q' to 'q', 'ʀ' to 'r', 'ꜱ' to 's', 'ᴛ' to 't', 'ᴜ' to 'u', 'ᴠ' to 'v', 'ᴡ' to 'w', 'x' to 'x', 'y' to 'y', 'ᴢ' to 'z',) |
Contributor
There was a problem hiding this comment.
maybe make cyrillicToAscii to prevent bypassing those filters by replacing latin A with cyrillic А
Contributor
Author
There was a problem hiding this comment.
maybe make
cyrillicToAsciito prevent bypassing those filters by replacing latinAwith cyrillicА
It will cause russian messages to be incorrectly converted
Contributor
There was a problem hiding this comment.
theres no filters for russian language anyway or wdym
emyfops
marked this pull request as ready for review
December 21, 2025 23:52
Contributor
Author
beanbag44
self-requested a review
December 24, 2025 01:36
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.

AntiSpam module to filter, remove or ignore certain categories of words. In the near future it will also filter out regular spam using possible a bucket token approach.