How to make my discord bot run automatically

Hiya, recently I have been making a discord bot using glitch, however I can’t get the bot to run without opening the terminal and running the node. I know its possible to run it using the url because I am aiming to get it hosted 24/7 with uptimerobot. I have viewed this post: My Discord bot doesn't automatically run However I can not get it to run automatically still after viewing this.

Inside of package.json you need to make sure you have a scripts Object with a key start which is a string of the command you run to start your bot


  "scripts": {
    "start": "node server.js"

Thanks so much, that did the trick.