Skip to content

Added suspicious keywords to scam blocker - #658

Merged
Zabuzard merged 1 commit into
developfrom
feature/block_nsfw_scam
Oct 26, 2022
Merged

Zabuzard merged 1 commit into
developfrom
feature/block_nsfw_scam

Conversation

@Zabuzard

@Zabuzard Zabuzard commented Oct 24, 2022 •

Copy link
Copy Markdown
Member

Overview

Closes #656 .

Adds a suspiciousKeywords feature to the ScamBlocker. If a message contains such a word, pings everyone and has any url, it is considered scam.

Previously, this feature existed as well, but it only checked for the string "nitro" hardcoded.

In the past, the ScamBlocker was only meant to prevent nitro-scam, but now we also face NSFW-scam. So we simply expand this feature and add words like boob, esex and similar on top.

The feature is fully unit tested on the recent scam we had.

Config

Added to scamBlocker:

"suspiciousKeywords": ["nitro", "boob", "sexy", "sexi", "esex"],

@Zabuzard Zabuzard added enhancement New feature or request priority: normal labels Oct 24, 2022
@Zabuzard Zabuzard self-assigned this Oct 24, 2022
@Zabuzard
Zabuzard requested review from a team as code owners October 24, 2022 09:51
@sonarqubecloud

Copy link
Copy Markdown

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

0.0% 0.0% Coverage
0.0% 0.0% Duplication

@Zabuzard
Zabuzard merged commit 522d5c3 into develop Oct 26, 2022
@Zabuzard
Zabuzard deleted the feature/block_nsfw_scam branch October 26, 2022 07:54
@Zabuzard Zabuzard mentioned this pull request Nov 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request priority: normal

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Block NSFW scam

3 participants