Glitch project restarting too often

Hey, I am currently adding a music feature to my bot, but when playing I noticed that my app restarts often. How can I solve this?

Project name: “archoiddiscordbot”

Thanks!

Heyo @Potato!

Can you be more specific what you mean by “often” in this context? The watch.json file you have in place tells Glitch to restart at most every 90 seconds, but it’s including all .json and .js files, including your commands and events files. So while you’re editing those files while working on your bot, each edit will trigger a restart about every minute and a half.

If it’s this editing is causing your bot to restart too often and you want to avoid it, https://glitch.com/~no-autorestart might help you configure things so your project only restarts when explicitly requested to.

Happy glitching!

1 Like