Ask coding questions

← Back to all posts
Environment variables are not working.
h
Nalin2005 (0)

I have made this discord bot and saved the bot token as an environment variable but the variable is not set. I tried using the shell, but no luck, used a python file, no luck. Please help.

Answered by LukeWright (281) [earned 5 cycles]
View Answer
Comments
hotnewtop
LukeWright (281)

Repl ended up doing away with the old system of making envs. Your previous env could have been deleted in the process of transitioning from the old system to the new one. To manage your envs, you now have to click the lock icon on the left of the screen

Nalin2005 (0)

@LukeWright Thanks for your help. I tried to make the environment variables from there and it worked.

LukeWright (281)

Click the checkmark next to my comment if I gave you the right answer! @Nalin2005