Comment Rinse | Reddit for Developers
close

Readme

Comment Rinse

A Devvit app for Reddit that automatically detects and removes highly similar comments on a post to reduce spam and repetitive replies.


Key Features

  • Customizable Threshold: Moderators can set the exact percentage of similarity required to trigger a removal.
  • User & OP Whitelisting: Exempt specific users and the post's original author (OP) from checks.
  • Automated Moderation: Removes the duplicate comment and leaves a distinguished, customizable reply on the original comment for transparency.
  • Configurable Time Window: Only checks for duplicates within a recent time frame (e.g., the last hour).
  • Fully Customizable Messages: Control the exact text of the removal reason and the bot's footer signature.

How It Works

  1. A new comment is posted in a subreddit where the app is installed.
  2. The app checks if the comment's author is on the general whitelist.
  3. It then checks if the "Allow OP Duplicates" setting is enabled and if the commenter is the author of the post.
  4. If the user is not exempt, the app fetches all other comments made on the same post within the configured "Lookback Period".
  5. It uses a similarity algorithm to compare the new comment against the recent ones.
  6. If a match is found that exceeds the "Similarity Threshold", the new, duplicate comment is removed.
  7. A distinguished reply is posted to the original comment to explain the removal, using the customizable messages from the settings.

Installation

This app can be installed on your subreddit via the Devvit platform. After installation, a moderator with the appropriate permissions must configure the settings.


Configuration Settings

The app's behavior can be fully customized in your subreddit's settings page for this app (Your Subreddit -> Mod Tools -> Apps -> Comment Rinse).

  • Similarity Threshold (%)

    • Sets the similarity score (1-100) for removing comments. 100 is an exact match.
    • Default: 90
  • Lookback Period (minutes)

    • How many minutes back in the past to check for similar comments on the same post.
    • Default: 60
  • Whitelisted Users (comma-separated)

    • A list of usernames who are exempt from all duplicate comment checks (e.g., user1,AutoModerator,another_mod).
    • Default: (empty)
  • Allow Post Author to post duplicate comments

    • A toggle switch. If enabled, the original poster (OP) will be exempt from duplicate comment checks on their own post.
    • Default: true
  • Removal Reason Message

    • The main body of the message that the bot posts when it removes a comment.
    • Default: This comment has been removed because it is highly similar to another recent comment in this thread.
  • App Footer Message

    • The signature or footer that gets appended to the removal reason message. You can use {subredditName} as a placeholder, and it will be automatically replaced with your subreddit's name.
    • Default: *I am an app, and this action was performed automatically. Please [contact the moderators of this subreddit](https://www.reddit.com/message/compose/?to=/r/{subredditName}) if you have any questions or concerns.*

About this app