Skip to content
Sign upLog in
← Back to Community

i cant create .env file

Profile icon
EibiTimeHacker

Hey i have an question to you guys. I tried to make an discord bot but i cant create and .env file and i dont want to show my token so do you know what to do ? Thx for answer

Voters
Profile icon
nerfelitewar
Profile icon
anabilbaruah
Profile icon
DanielReynard
Profile icon
Siakhmad45
Profile icon
EibiTime
Comments
hotnewtop
Profile icon
Bookie0

You can't make .env files anymore, you'll have to use this new GUI by clicking the lock icon in the sidebar (near where the files are kept). Then you just enter the name of a key and its value. And in the repl, you do import os, and my_secret = os.environ['name of your key here']. Good luck! :)
Screen Shot 2021-04-15 at 8.08.10 PM

Profile icon
EibiTime

But how does this work with my DC bot token so can i write as the name TOKEN and in the description my TOKEN ?