How to insert a hidden environment variable?

I need to make it so it adds the secret variable in the code, instead of putting the actual token inside the code (because it’s open-source). So how do I get the secret environment variable and put it in?

On the bottom left of the editor under tools click secrets. Then from there put the environment variables in.

um? am I doing this wrong
image

I belive that it needs () instead of []

client.run(os.environ["Hidden-Token"])
4 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.