My bot stop working after few hours


#1

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 ?


#2

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.


#3

I hope this article here can be a help for you.
thelearneer.gitbooks.io/discord-js-glitch-hosting/