Skip to content

Detect ai spam posts and remove them. #768

@ampelectrecuted

Description

@ampelectrecuted

I don't want to use another AI for this as omniblocks alone probably emits a bunch of carbon dioxide from just all the AI github actions. Instead we can check patterns using regex:

  • Skip [bot] accounts for obvious reasons.
  • Em dashes— a huge pattern of AI generated text— is automatically flagged. Nobody in a GitHub comments section would use em dashes unless they were just clankers that Microslop (often misspelt as Microsoft) wants you to use.
  • Words like "robust", "deep dive into", etc. = flagged.
  • turn0search0 is flagged.
  • If your issue starts with "Subject:" or "Title:" it is flagged.
  • Emojis are flagged.

If at least 3 patterns are flagged then your comment is hidden, and you will be pinged with a message saying

Please do not post AI text on this issue tracker. If you want to talk to AI ping @ coderabbitai or @ OmniBlocks/ai. To generate PR with @ cto-new just ping that user.
(remove te spaces after the ats)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Medium-PrioritybugSomething isn't workingdocumentationImprovements or additions to documentationenhancementNew feature or requesttestsRelated to tests, especially CI tests

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions