Why my bot stop working? I start it but 1 or 2 hours later, my bot close (i use discord.js) can i have help ?
Projects on Glitch sleep after 5 minutes of inactivity, see https://glitch.com/faq#restrictions. If you need to keep your bot awake, we suggest using a web cron service or monitoring service like uptimerobot and hitting an exposed end-point in your app every 5 mins or so.
I hope this article here can be a help for you.