A simplified, comprehensive Reddit monitoring system that consolidates all monitoring functionality into a single script with automated cron scheduling!
āāā unified-reddit-monitor.ts # šÆ MAIN SCRIPT - Runs on cron schedule (CRON) ā
READY
āāā README.md # This file
All legacy files have been removed! The project now contains only the essential unified monitoring script.
The monitor runs automatically on a cron schedule. Set your preferred schedule in the Val Town web UI:
Recommended Schedules:
*/30 * * * * - Every 30 minutes (active monitoring)0 * * * * - Every hour (balanced)0 */2 * * * - Every 2 hours (moderate)0 */4 * * * - Every 4 hours (conservative)0 9,21 * * * - Twice daily at 9 AM and 9 PMYou can also run the monitor manually anytime by visiting the HTTP endpoint:
GET /unified-reddit-monitor.ts
GET /unified-reddit-monitor.ts?action=run # Run the monitor (default)
GET /unified-reddit-monitor.ts?action=status # Show current configuration
GET /unified-reddit-monitor.ts?action=reset # Reset last checked timestamp
GET /unified-reddit-monitor.ts?action=help # Show help information
r/lovable, r/AppBusiness, r/appdev, r/AppDevelopersr/ChatGPTCoding, r/indiehackers, r/microsaas, r/replitr/ReplitBuilders, r/vibecoding, r/ViralAppsauth, authentication, login, user sessionsstripe, subscriptions, monetization, paywall, feature gatinganalyticshow do I make money with my app151sZ8h5TaHVZGZZn0rOhArX_YGngVjaxRA3Y0F3STl2cuEmgHkQAutomated: The monitor runs automatically on your configured cron schedule.
Manual Override: Run the monitor manually anytime:
GET /unified-reddit-monitor.ts
GET /unified-reddit-monitor.ts?action=status # View current settings
GET /unified-reddit-monitor.ts?action=reset # Reset last checked timestamp
GET /unified-reddit-monitor.ts?action=help # Show help and usage
When matches are found, the system will:
šØ Unified Reddit Monitor Alert: X new matching posts in Y subredditshttps://hooks.slack.com/services/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šØ Unified Reddit Monitor Alert: X new matches in Y subredditsrelevant_reddit_poststitle (text) - Post titleauthor (text) - Reddit usernamekeywords_found (text) - Comma-separated matched keywordscomments (text) - Number of commentsposted (text) - ISO timestamp when postedurl (text) - Full Reddit URLffilnpatwtlzjrfbmvxk.supabase.coTo modify the configuration, edit the CONFIG object in unified-reddit-monitor.ts:
const CONFIG: MonitorConfig = {
keywords: [
'auth', 'authentication', 'login', 'user sessions',
'stripe', 'subscriptions', 'monetization',
'paywall', 'feature gating', 'analytics',
'how do I make money with my app',
'YOUR_NEW_KEYWORD' // Add here
],
// ... other settings
};
const CONFIG: MonitorConfig = {
subreddits: [
"lovable", "AppBusiness", "appdev", "AppDevelopers",
"ChatGPTCoding", "indiehackers", "microsaas", "replit",
"ReplitBuilders", "vibecoding", "ViralApps",
"YOUR_NEW_SUBREDDIT" // Add here
],
// ... other settings
};
const CONFIG: MonitorConfig = {
postLimit: 50, // Check 50 posts per subreddit instead of 25
useSlack: true, // Enable/disable Slack notifications
useEmail: false, // Enable/disable email notifications
// ... other settings
};
/unified-reddit-monitor.ts to run immediately?action=status to see current configuration?action=reset to clear last checked timestamp?action=help for usage informationThe project now contains only the essential unified monitoring script. All legacy files, test files, and redundant components have been removed for maximum simplicity and maintainability.
No Recent Matches
?action=status to see when last checked?action=reset to check all posts againAPI Errors
Notification Issues
The unified script provides comprehensive logging:
ā
Consistent Coverage: Never miss new posts with automated scheduling
ā
Hands-Free Operation: Set it once and let it run automatically
ā
Flexible Control: Manual override available when needed
ā
Maximum Simplicity: Single script handles everything
ā
Easy Maintenance: One file to manage and update
ā
Reliable Operation: Multiple fallback methods with robust error handling