repost-remove
A Reddit Devvit automation app for subreddit moderation, Rule 6 (Repost / OC) enforcement, and Rule 5 video length control.
Features
1. Interactive Rule 6 Manual Mod Action
- Native
Remove as Repost (Rule 6) post menu action for moderators.
- Scans recent mod logs (up to 200 entries) for previous bans of the author.
- Modal form to enter proof URL, choose optional temporary or permanent ban, and execute.
- Automatically removes the post, locks it, posts a distinguished sticky removal comment with proof, fires & archives standard removal modmail, updates the post flair, and executes bans natively.
2. Automated Repost Verification on New Submissions
- Posts a stickied, distinguished verification comment on every new post submission.
- Prompts the community to reply directly with proof if they believe the post violates Rule 6.
- Detects replies with proof links and tracks community upvotes.
- When a proof reply hits the configured upvote threshold:
- Automatically filters / removes the post to the moderator queue and locks it.
- Fires an alert modmail notification with the post details, proof submitter, and link.
- Sends a rich Discord webhook notification with embed details and role/user tags.
3. Rule 5 Video & GIF Length Filter
- Schedules a job 60 seconds after post submission to inspect video duration.
- Automatically removes posts if video/GIF duration exceeds 15 seconds, leaving a stickied removal comment.
Interactive App Settings
Configurable directly from your subreddit's App Settings page (r/<subreddit>/apps/repost-remove):
| Setting |
Type |
Default |
Description |
verification_comment_enabled |
Boolean |
true |
Enable/disable automatic verification comment on new submissions |
verification_comment_text |
Paragraph |
Markdown template |
Stickied comment text prompting users for repost proof |
verification_comment_sticky |
Boolean |
true |
Whether to sticky the verification comment |
upvote_threshold |
Number |
1 |
Upvotes required on a proof reply to trigger actions |
proof_require_url |
Boolean |
false |
If enabled, replies without a link are ignored |
filter_post_on_threshold |
Boolean |
true |
Automatically filter/remove post when threshold is hit |
send_modmail_alert |
Boolean |
true |
Send modmail alert when threshold is hit |
discord_webhook_url |
String |
"" |
Discord webhook URL for alerts |
alert_usernames |
String |
"Same_Investigator_45" |
Moderator Reddit usernames or Discord IDs to alert |
video_filter_enabled |
Boolean |
true |
Enable Rule 5 video duration filter |
video_removal_comment |
Paragraph |
Standard notice |
Removal comment text for videos > 15 seconds |
Development & Playtesting
Prerequisites
- Node.js (v18+)
- Devvit CLI (
npx devvit login)
- Moderator permissions on a test subreddit
Commands
# Install dependencies
npm install
# Run unit tests
npm test
# Type-check TypeScript code
npm run type-check
# Playtest in your test subreddit
npx devvit playtest r/<your_test_subreddit>
# Upload a new version
npx devvit upload
Changelog
[0.1.0]
- Community Repost Verification: Auto-comment and sticky Rule 6 verification prompt on new submissions.
- Reply & Proof Tracking: Track direct replies to the verification sticky and detect proof URLs.
- Upvote Threshold Actioning: Automatically filter posts to mod queue when community proof receives sufficient upvotes.
- Multi-Channel Alerts: Modmail notifications and Discord webhook support with role/user tagging.
- Full Settings Panel: Subreddit-level app settings for thresholds, comment texts, toggles, and webhooks.
- Preserved existing Rule 6 modal form and Rule 5 video length filter.
[0.0.15]
- Added video/GIF length filter for Rule 5.
- Auto-archive modmail after post removal.
- Settings page for Rule 5 filter.