Repls typically go to sleep after a period of inactivity. To make sure that your repl is restarted, you can use Always-on.
Always-on is currently available for Hackers.
Always-on is controlled by a toggle inside your repl. Navigate to your repl, and then open up the info panel by clicking on your repl's name. You can then enable Always-on by clicking on the toggle at the bottom:
After Always-on is enabled, you will see a green indicator next to your repl's name:
That's it! We will run your repl whenever it goes to sleep.
Repls ordinarily do not run unless someone presses the Run button or if the repl receives HTTP traffic. Always-on is responsible for running your repl when neither of those occur. When running your repl, Always-on will install packages and respect your Run button configuration.
Always-on does not extend your repl's lifetime. All repls are subject to go to sleep at any time. Always-on will, however, immediately run your repl again whenever this happens. If your process exits on its own, Always-on will not restart it. We recommend using Database to persist information outside of your process.