in this video: https://youtu.be/SPTfmiYiuok?t=1006 (time code in the link)
so i get eror:
Traceback (most recent call last):
File “main.py”, line 28, in
client.run(os.environ(‘TOKEN’))
TypeError: ‘_Environ’ object is not callable
the 2 file:
so pls help
tnx. shalev
Hi @shalevdj !
Welcome to the forum!
Replit changed their design so you can’t create env files anymore.
I am kind of surprised it allowed you to create the file because for me there is an error message.
You need to use the secrets tab instead for your keys.
again i have eror maybe i do the code wrong how can i add it?
and i just add “space”.env
xD
shalevdj:
how can i add it?
You will add TOKEN to the key and then the value will be your discord bot.
Then you have client.run(os.getenv('TOKEN'))
Just like you had before.
yee tnx it’s working tnx)
1 Like
system
closed
December 24, 2021, 6:13am
#7
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.