Skip to content
← Back to Community
How can I get my console NOT to automatically update my packages whenever it wants?
Profile icon
ColeTMK

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!

Voters
Profile icon
PushkarKulkarni
Profile icon
ColeTMK
Comments
hotnewtop
Profile icon
OldWizard209

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.

Profile icon
ColeTMK

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

Profile icon
OldWizard209

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

Profile icon
ColeTMK

@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.

Profile icon
Coder100
Profile icon
Coder100

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.

Profile icon
PushkarKulkarni

hey

@Coder100

i actually dont know how to ask questions on replit.
so my doubt is that i am using pycord to run a discord bot on replit using python
And pycord(python) has its name as import discord and not import pycord to make it convenient but replit thinks i am using discord.py and install discord.py y1.7.3 version. is there a way to completely stop it from auto installing discord.py by changing the packager files?