Reverse engineered prompt

Build me a tiny JavaScript app I can run on Replit that keeps my Discord account showing online all the time, even if I close my browser. I want it to be really simple for a beginner to use. It should read my Discord token from an environment secret, connect automatically when it starts, and keep retrying if the connection drops.

Also add a very basic web page or health check URL so I can plug it into a free uptime monitor and keep the Replit project awake forever. If the app starts successfully, it should clearly log that it is running. If something fails, the error should be easy to understand.

Please include a short setup guide in plain English that explains how to add the secret in Replit, run the project, get the public URL, and use an uptime monitoring site to keep it alive. Keep the whole thing lightweight and easy to copy and run. If any steps or code need updating, look up current docs online and make it work end to end.

Want more depth? Deep Reverse