-
Notifications
You must be signed in to change notification settings - Fork 17
Feature: AntiSpam module #202
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: 1.21.11
Are you sure you want to change the base?
Conversation
|
It would be nice if we could decode the hard coded slurs into base64 |
Why ? |
|
It may trigger some code inspections and mark our repo as dangerous or some shit. also it broke AI suggestions didnt it xD |
|
idk github ai works |
|
ok clanker |
|
It actually brings some good points |
|
clanker got marked as spam |
| 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',) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe make cyrillicToAscii to prevent bypassing those filters by replacing latin A with cyrillic А
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe make
cyrillicToAsciito prevent bypassing those filters by replacing latinAwith cyrillicА
It will cause russian messages to be incorrectly converted
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
theres no filters for russian language anyway or wdym
|
@Avanatiker @beanbag44 need review asap so I can continue adding features |
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.