Basic Node.js Automation Script

Замовник: AI | Опубліковано: 31.10.2025

Project Overview: I've built an automated Discord monitoring system. Its purpose is to run 24/7 on a VPS for a small, private subscription service I'm starting. The system is already built and working. Here's a quick summary of how it functions: The Core: A Node.js script using discord.js-selfbot-v13 logs in with a user token and listens for messages in specific, pre-configured channels. The Logic: When a valid message is detected, the script extracts the URL, sanitizes it (follows redirects, strips tracking tags), and then relays it to a private Discord server via a webhook. The Resilience: I've also built a separate Manager.js script that provides an automated failover system, switching to a backup "sleeper" account if the primary one is banned. What I Need Your Expertise For: The system works, but as I'm preparing to deploy it, I want a professional to ensure it's as "bulletproof" as possible. My budget is tight as this is a personal startup, so I'm not looking for a full rewrite—just your expert guidance and implementation on these specific points: Code Review: A quick review of my scripts (Manager.js and the main monitor script) for any obvious bugs, race conditions, or performance improvements. Security Hardening: The most important task. Help me implement the best practice for storing my secret tokens (e.g., moving them from my JSON config to environment variables on the server). Reliability (PM2 Setup): Configure a PM2 ecosystem.config.js file to properly manage both the Node.js monitor and my separate .NET relay executable, ensuring they both restart automatically on crash or server reboot. Stealth Validation: A quick check of my current stealth measures (residential proxy use, idle status, random delays) to confirm they are sound. The goal is to have peace of mind that the system is secure and reliable before I start onboarding paying members. Given that the core architecture is already complete, I'm hoping we can agree on a fixed price for this review-and-refine project that fits within a startup budget. If this sounds like a project that interests you, I would be happy to share the full codebase with you and discuss a quote, what would you charge for something like this