My glitch activates my discord bot too many times how can i disable autosaving?

very simple question how do i disable auto saving? glitch auto saves too fast! and my bot logins so many times!

i’m afraid my bot id will be banned…

okay okay okay don’t panic, this is an easy solution which i have to dig deep into the glitch ecosystem to find…

three words, watch dot json (watch.json)

just copy the code below and it should stop it autosaving so much:

{
  "install": {
    "include": [
      "^package\\.json$",
      "^\\.env$"
    ]
  },
  "restart": {
    "exclude": [
      "^public/",
      "^dist/"
    ],
    "include": [
      "\\.js$",
      "\\.coffee$",
      "\\.json"
    ]
  },
  "throttle": 100
}

change the throttle to the amount of miliseconds you want it to wait before it saves.

OR just search ‘refresh’ in the project search bar and disable the checkbox if not done so already

1 Like