A Discord bot that detects cryptocurrency scams in images, and more in the future.
  • TypeScript 99.6%
  • JavaScript 0.4%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
theo 37a01672a6
All checks were successful
Build & test / build (node-22) (push) Successful in 1m23s
update uploadDatasets and bump actions versions
2026-08-22 18:01:36 +01:00
.forgejo/workflows update uploadDatasets and bump actions versions 2026-08-22 18:01:36 +01:00
.github/workflows update uploadDatasets and bump actions versions 2026-08-22 18:01:36 +01:00
packages/jsx-runtime initial version 2026-07-22 02:20:57 +01:00
scripts update uploadDatasets and bump actions versions 2026-08-22 18:01:36 +01:00
src improve scoring system & add upload script 2026-08-22 16:11:24 +01:00
tests added image hash detection, expand dataset, improve code & more... 2026-08-20 17:57:28 +01:00
.env.example added image hash detection, expand dataset, improve code & more... 2026-08-20 17:57:28 +01:00
.gitignore added image hash detection, expand dataset, improve code & more... 2026-08-20 17:57:28 +01:00
LICENSE add license 2026-07-22 20:56:15 +01:00
package.json improve scoring system & add upload script 2026-08-22 16:11:24 +01:00
pnpm-lock.yaml added image hash detection, expand dataset, improve code & more... 2026-08-20 17:57:28 +01:00
pnpm-workspace.yaml initial version 2026-07-22 02:20:57 +01:00
README.md update README 2026-08-20 18:05:49 +01:00
tsconfig.build.json update build steps 2026-07-23 00:38:23 +01:00
tsconfig.json added image hash detection, expand dataset, improve code & more... 2026-08-20 17:57:28 +01:00
vitest.config.ts improve ocr speed, add more sample images, add score-based detection and more 2026-07-23 00:26:19 +01:00

ScamDetector

A Discord bot that detects cryptocurrency scams in images, and more in the future.

  • Scans images for scam content
  • Compares image similarity to known images from a dataset
  • Uses OCR to detect suspicious text and patterns
  • Automatically kicks users, and sends them a DM with a link to rejoin once their account is secure

Add to your server

If you do not want to host your own instance of the bot, you can use the one hosted and managed by me! The bot should have 100% uptime so don't worry.

-> Authorization Link

Setup

  1. Clone repo
git clone https://git.imtheo.lol/theo/ScamDetector
cd ScamDetector
  1. Install packages
pnpm install
  1. Edit .env
cp .env.example .env
nano .env
  1. Download dataset & generate hashes
pnpm datasets:download
pnpm hash:gen
  1. Start

To run as dev:

pnpm run dev

To run normally:

pnpm run build
pnpm run start