File Isn't Running 24/7 Even Though I Linked Uptimerobot To It

Hi there! I had just made a new discord bot using repl, and I hooked it up to uptime robot to keep it running, but the bot keeps going offline every two minutes or so, so then I have to open up the project and run it again. Is there something that I am doing wrong?

You are viewing a single comment. View All

that's because server.js isn't run. So, just add this to index.js: