Why os.getenv is None?
So i was following along a tutorial to make a discord bot in repl.... and whenver i print os.getenv the result is none.... whats the issue?
my env file name is *.env
Voters
Ask coding questions
So i was following along a tutorial to make a discord bot in repl.... and whenver i print os.getenv the result is none.... whats the issue?
my env file name is *.env
Your
env
file's name should be.env
Nothing more, nothing lesshttps://docs.replit.com/repls/secret-keys
it gives an error that the file name cant be just be .env
@19ecal
it still gives the output as none ://
@19ecal
ahh i deleted the prev file and made a new one it works just fine now
..... thanks a lot
@19ecal