Help getting a Discord bot running without console

Please consider providing your Glitch project’s name in your post. Many problems are very difficult to troubleshoot without being able to see the code involved. Users who haven’t been invited to your project won’t be able to edit your code or see the secrets in your .env file just from your project name.

Hello guys, I’m new here so sorry if this is a dumb question. I’m trying to make a Discord bot but I’m having trouble getting it up and running. I wrote the code on my computer first, and then pushed it to GitHub, and then imported it here. If I open us the terminal and type node goalbot.js it runs and I can use the bot in Discord. But if I close the console it stops and clicking ‘Show’ it always gets stuck on ‘Starting…’. What am I doing wrong?

Any help appreciated, thanks.

Project name: goalbot My Bot