Skip to content

Implement automatic spam detection and banning feature#608

Merged
twobiers merged 22 commits into
masterfrom
autoban
Jul 9, 2026
Merged

Implement automatic spam detection and banning feature#608
twobiers merged 22 commits into
masterfrom
autoban

Conversation

@twobiers

@twobiers twobiers commented Jun 9, 2026

Copy link
Copy Markdown
Collaborator

Das ist ne kurze gevibecodete idee. Ich schau mir das später nochmal genauer an, glaube die Scores machen so noch nicht richtig Sinn.

Idee:

  • Wir machen einen Anomalie-Score für neue User um Spam-Bots zu identifizieren
  • Es muss ein Threshold erreicht werden
  • Dann folgt Message Delete + Ban
  • Zur Sicherheit bannen wir nicht über die Discord-Funktion, sondern über unser Ban, dann kann ein irrtümlicher Ban aufgehoben werden
  • Nachrichten werden in einen für Mods (+Devs?) zugänglichen Channel geschrieben für Audit-Zwecke

Feedback nehme ich aber gerne schonmal.

@github-actions

github-actions Bot commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

Hallo, hier kannst du jetzt deine tolle neue Funktion testen: https://discord.gg/pJjfF6n2ec

@twobiers twobiers marked this pull request as ready for review June 9, 2026 16:54
@twobiers

twobiers commented Jun 9, 2026

Copy link
Copy Markdown
Collaborator Author

Bin mir noch nicht sicher ob die Scores und die Thresholds so passen, aber konzeptuell sollte jetzt alles da sein.

@twobiers

Copy link
Copy Markdown
Collaborator Author

Alternative/Ergänzung: Honeypot-Channel.

image

@twobiers twobiers requested a review from holzmaster June 15, 2026 19:52
Comment thread src/service/spamDetection.ts Outdated
Comment thread src/service/spamDetection.ts
@5yn74x

5yn74x commented Jun 15, 2026

Copy link
Copy Markdown
Contributor

Alternative/Ergänzung: Honeypot-Channel.
image

Finde ich gut, nur weiß ich nicht woran ein Bot die zu spammenden Kanäle auswählt.
Ist der Bot Context-Aware, könnte er die Warnhinweise erkennen.

Wäre der Honeypot in einem Spam-Kanal, wo wir als normale User regelmäßig unterschiedlichen Content erstellen, käme der Honeypot natürlicher rüber. Das wäre dann in Verbindung mit dem Scoring mMn eine gute Methode.

@holzmaster holzmaster left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Vielleicht erstmal im dry-mode mit Mod-Ping, statt autoban? Ansonsten ok

Comment thread src/context.ts Outdated
Comment thread src/service/spamDetection.ts Outdated
Comment thread src/service/spamDetection.ts Outdated
Comment thread src/service/spamDetection.ts Outdated
Comment thread src/service/spamDetection.ts Outdated
Comment thread src/service/spamDetection.ts Outdated
Comment thread src/service/spamDetection.ts Outdated
Comment thread src/context.ts Outdated
@SoraTenshi

Copy link
Copy Markdown
Contributor

Wollen wir wirklich einen fixen autoban haben?
Das wäre nämlich ziemlich scheiße bei false-positives.

Wäre dafür nicht so ne art "containment" zone / rolle ideal(er)?
Autodelete von nachrichten der letzten ~24 hrs, containment rolle & einsicht auf einen "autoban" channel.

thoughts?

@twobiers

twobiers commented Jul 8, 2026

Copy link
Copy Markdown
Collaborator Author

Wäre dafür nicht so ne art "containment" zone / rolle ideal(er)?
Autodelete von nachrichten der letzten ~24 hrs, containment rolle & einsicht auf einen "autoban" channel.

@SoraTenshi Genau das ist effektiv der PR. Wir bannen nicht vom Server sondern weisen die banned rolle zu. Der Grund wieso der User gebannt wurde, wird geloggt und ist auditbar.

Vielleicht erstmal im dry-mode mit Mod-Ping, statt autoban? Ansonsten ok

@holzmaster Vielleicht. Glaube ein Ping hilft uns nicht so viel weiter, muss sich ja auch wer verantwortlich füheln den Code anzupassen. Aber vielleicht das bannen erstmal hinter ne Feature Flag hängen.

@twobiers twobiers requested a review from holzmaster July 8, 2026 19:22
@twobiers twobiers merged commit 28de26c into master Jul 9, 2026
11 checks passed
@twobiers twobiers deleted the autoban branch July 9, 2026 16:18
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.

4 participants