I can’t make the .env file, what’s wrong? is there any alternative if i can’t create the .env file?
*A newbie user of python
I can’t make the .env file, what’s wrong? is there any alternative if i can’t create the .env file?
*A newbie user of python
do you mean on replit?
see this
@ieahleen yess, it’s on Replit.
So that’s mean i have to use ‘Secrets’ feature? Is it the same way as when using .env?
I was quite confused because I was a beginner who wanted to build a bot
yes, replit doesn’t allow .env
files anymore so to use environment variables you need to use the Secrets feature, it’s a pretty new thing so anything that is older than a week will tell you to create .env
files even if it is no more possible
so I tried to do the code a discord bot too and got stuck. here’s the code below
client.run(os.getenv[“super_secret_token”])
it keeps saying “the function isn’t subscriptable”
oh and also is there a way to make an inventory system where it finds every user and makes a list as it’s “inventory” for it?
thanks
how do i use it for my lobby bot
you probably need to use the database for that, but I don’t really know more than the tutorial
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.