Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Feature: AntiSpam module#202

Merged
emyfops merged 10 commits into
1.21.11lambda-client/lambda:1.21.11from
feature/antispamlambda-client/lambda:feature/antispamCopy head branch name to clipboard
Jan 2, 2026
Merged

Feature: AntiSpam module#202
emyfops merged 10 commits into
1.21.11lambda-client/lambda:1.21.11from
feature/antispamlambda-client/lambda:feature/antispamCopy head branch name to clipboard

Conversation

@emyfops

@emyfops emyfops commented Dec 21, 2025

Copy link
Copy Markdown
Collaborator

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.

@emyfops emyfops marked this pull request as draft December 21, 2025 00:22
@Avanatiker

Copy link
Copy Markdown
Member

It would be nice if we could decode the hard coded slurs into base64

@emyfops

emyfops commented Dec 21, 2025

Copy link
Copy Markdown
Collaborator Author

It would be nice if we could decode the hard coded slurs into base64

Why ?

@Avanatiker

Copy link
Copy Markdown
Member

It may trigger some code inspections and mark our repo as dangerous or some shit. also it broke AI suggestions didnt it xD

@emyfops

emyfops commented Dec 21, 2025

Copy link
Copy Markdown
Collaborator Author

idk github ai works

This comment was marked as spam.

@emyfops

emyfops commented Dec 21, 2025

Copy link
Copy Markdown
Collaborator Author

ok clanker

@Avanatiker

Copy link
Copy Markdown
Member

It actually brings some good points

@pizzav-xyz

Copy link
Copy Markdown

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',)

Copy link
Copy Markdown
Contributor

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 А

Copy link
Copy Markdown
Collaborator Author

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 А

It will cause russian messages to be incorrectly converted

Copy link
Copy Markdown
Contributor

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

@emyfops emyfops marked this pull request as ready for review December 21, 2025 23:52
@emyfops

emyfops commented Dec 22, 2025

Copy link
Copy Markdown
Collaborator Author

@Avanatiker @beanbag44 need review asap so I can continue adding features

@beanbag44 beanbag44 self-requested a review December 24, 2025 01:36

@beanbag44 beanbag44 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@emyfops emyfops merged commit c67e3a9 into 1.21.11 Jan 2, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.