Anyone know how to use .env?(discord.py)
I'm trying to hide my token in a .env file so people can't get my bot's token, and I don't know how to get my token variable from the file.
TOKEN=da token(not telling u lol)
token = os.getenv("TOKEN")
I have a feeling that my code is wrong, but I don't know what the right code is.