Ask coding questions

← Back to all posts
i cant create .env file
EibiTime (0)

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

EibiTime (0)

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

Bookie0 (6272)

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! :)