Skip to content

Improve spam detection#275

Merged
vcarl merged 4 commits intomainfrom
vc-improve-spam-detection
Feb 18, 2026
Merged

Improve spam detection#275
vcarl merged 4 commits intomainfrom
vc-improve-spam-detection

Conversation

@vcarl
Copy link
Member

@vcarl vcarl commented Feb 9, 2026

No description provided.

vcarl and others added 4 commits February 7, 2026 18:42
Multi-signal spam detection pipeline with content analysis, behavioral
heuristics, velocity tracking, and honeypot support. Graduated response
system (low/medium/high/honeypot tiers) with configurable thresholds.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Replace the old regex-based isSpam helper with the new Effect-based
SpamDetectionService in the automod MESSAGE_CREATE handler.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
…ove double-fire

- Move SpamDetectionServiceLive into AppLayer so it's constructed once at
  startup, fixing per-message DB connection and cache recreation
- Remove legacy honeypotTracker.ts (new service.ts already handles honeypot),
  fixing double-softban on honeypot messages
- Inline spamPatterns.ts into contentAnalyzer.ts (sole consumer)
- Remove SpamDetectionError (created only to be immediately caught), simplify
  to Effect.tryPromise + catchAll
- Inline hashContent (one-liner used once)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
@vcarl vcarl merged commit 952cff6 into main Feb 18, 2026
5 checks passed
@vcarl vcarl deleted the vc-improve-spam-detection branch February 18, 2026 17:59
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

Comments