Skip to content

Add bot-managed spam profile pattern system#65

Merged
Cordtus merged 1 commit intomainfrom
feat/spam-pattern-management
Mar 11, 2026
Merged

Add bot-managed spam profile pattern system#65
Cordtus merged 1 commit intomainfrom
feat/spam-pattern-management

Conversation

@Cordtus
Copy link
Copy Markdown
Collaborator

@Cordtus Cordtus commented Mar 11, 2026

Summary

  • Adds full CRUD management for spam profile patterns via bot commands, replacing the need to hardcode patterns and redeploy
  • New commands: /addspampattern, /removespampattern, /listspampatterns, /testspampattern, /spampatternhelp
  • Supports interactive keyboard flow (field selection -> pattern input) and single-command invocation with args
  • Patterns target specific profile fields (bio, channel title, or both) and support simple text, wildcards, and regex
  • DB patterns integrate with existing reaction spam detection alongside built-in fallback patterns
  • Includes help menu entry under Owner with examples

Test plan

  • Build passes (bun run build)
  • All 36 tests pass (bun run test)
  • Linter clean (bun run lint)
  • Verify /addspampattern interactive flow works in DM
  • Verify /addspampattern "bonus" channel direct command works
  • Verify /listspampatterns shows added patterns
  • Verify /removespampattern <id> removes pattern
  • Verify /testspampattern "bonus" BONUS 1000$ returns MATCH
  • Verify spam bot with matching channel title gets auto-banned on reaction

Spam bio/channel patterns can now be added, removed, listed, and tested
via bot commands instead of requiring code changes and redeployment.
Patterns are stored in SQLite with field targeting (bio, channel, both)
and integrate with the existing reaction spam detection pipeline.

New commands: /addspampattern, /removespampattern, /listspampatterns,
/testspampattern, /spampatternhelp. Supports interactive keyboard flow
and single-command invocation. Built-in patterns remain as fallbacks.
@Cordtus Cordtus merged commit 973fd81 into main Mar 11, 2026
4 checks passed
@Cordtus Cordtus deleted the feat/spam-pattern-management branch March 11, 2026 01:50
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