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 appTo enable Notion integration, you need to:
Create a Notion Database with these exact field names:
Title (Title field)URL (URL field)Subreddit (Text field)Author (Text field)Post Body (Text field)Matched Keywords (Text field)Date Found (Text field)Set Environment Variable: Add NOTION_DATABASE_ID environment variable in Val Town with your database ID
Get Database ID: Copy the database ID from your Notion database URL (the long string after the last / and before any ?)
151sZ8h5TaHVZGZZn0rOhArX_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 matches in Y subredditsTitle - Post titleURL - Full Reddit URLSubreddit - Subreddit name (e.g., r/lovable)Author - Reddit username (e.g., u/username)Post Body - Content of the postMatched Keywords - Comma-separated matched keywordsDate Found - Date when the match was discoveredTo 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
useEmail: false, // Enable/disable email notifications
useNotion: true, // Enable/disable Notion database storage
// ... 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 with email notifications and Notion database storage. All legacy files and test files 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
ā
Organized Storage: All matches automatically saved to Notion database
ā
Easy Maintenance: One file to manage and update
ā
Reliable Operation: Multiple fallback methods with robust error handling
ā
Structured Data: Searchable and filterable posts in Notion