Ask coding questions

← Back to all posts
Please put your bot token in .env
h
xryanww

After I created my bot I put the token in there but it asks me to put it in .env even after I did put it in .env please help

Voters
NonoBot
KeaganLandfried
xryanww
Comments
hotnewtop
KeaganLandfried

.env files used to be the correct way to store "secrets" or virtual environment variables. As of recently, replit updated this feature to the new secrets tab. Go to the left side of your code browser and click on the lock icon to add a new secret variable. There, you can store anything you'd like without having to worry about another user seeing them.

CodingCactus

example.env is not .env. Use the padlock tab on the left sidebar to add your secrets