Ask coding questions

← Back to all posts
How can I get my console NOT to automatically update my packages whenever it wants?
ColeTMK (0)

I have a Discord Bot running on Replit which I know is not the best idea but it's really the only option that I have currently. So whenever Replit isnt open on my PC, sometimes it just randomly wants to update my bots packages. I don't want this to happen because it also has to restart the bot as well. This has getting me banned from Discord's API 2 times. Is there a way that I can disable this? Thanks!

Comments
hotnewtop
OldWizard209 (1544)

This is a long topic so I will direct you to the docs.
First, see the installing packages docs on replit. Here, make any changes with the pyproject.toml file.

Then configure the run button in the way you want.

ColeTMK (0)

@OldWizard209 Would this work so it won't auto update? [packager] ignoredPackages=["discord"]

OldWizard209 (1544)

Nope, try changing your .toml file. Maybe this bit of code and alter the version of discord if that is what you want to do:

python = "^3.8"
discord = "^1.0.1"
flask = "^2.0.1"

@ColeTMK

ColeTMK (0)

@OldWizard209 I already had this, bot is still wanting to randomly auto update stuff when it's already updated lol.. It's random to, it will just do it like every few hours of few minutes.

Coder100 (18253)

no
that's not the correct diagnosis
the reason why you were ratelimited was probably caused by some other bot, because there many repls share the same container (citation needed)

also replit does delete the packages from time to time, it is correlated with your repl going down, so make sure to turn always-on for it, and boost for it as well so you have less interference.