Skip to content

Feat: anti scam / scam detection - #9

Open
Maximus7474 wants to merge 16 commits into
overextended:mainfrom
Maximus7474:feat/anti-scam-detection
Open

Feat: anti scam / scam detection#9
Maximus7474 wants to merge 16 commits into
overextended:mainfrom
Maximus7474:feat/anti-scam-detection

Conversation

@Maximus7474

@Maximus7474 Maximus7474 commented Aug 26, 2026

Copy link
Copy Markdown
Member

This PR uses perceptual hashing and hamming distance to determine if an image is considered as a scam image.

Note

Builds on top of #7 and #8

It includes a command add-scam-image restricted to users with manage message permission to add new images, this does require that the command author have the image and passes it along to the bot.

Detection occurs on any message with more then one attachment, it'll only hash the image type files. If any hashes match or are similar to the ones stored it'll act accordingly:

  • Member is bannable: bot will "softban" him and purge his messages
  • Member is moderatable (bot can timeout): bot will timeout for 24h and delete the message
  • Member is untouchable by the bot: simple message deletion

Depending on the outcome, the bot will log the action differently in the action log.

@Maximus7474
Maximus7474 requested a review from ESK0 August 26, 2026 13:27
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.

1 participant