Help with securing discord bot token in Replit #1047
Answered
by
DarrenOfficial
TactualGalaxy
asked this question in
Q&A
-
Hi, I'm an amateur and don't fully understand javascript. Recently I set up a discord music bot with Replit. It works great, thanks. However, I got a notification from discord that my bot's token has been leaked (Replit makes all of its code public). Replit community advises to use a .env file for a python solution, however it doesn't help with javascript. I don't know what to do. Please help |
Beta Was this translation helpful? Give feedback.
Answered by
DarrenOfficial
Aug 17, 2022
Replies: 1 comment 1 reply
-
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
JotaroKujo0525
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello by default we do support the use of
.env
or as repl.it called itSystem environment variables.
.Simply head over to environment variables, see attached image below
And fill in the key with the name of the "item", and the value as the "value". See attached image
Do this with all the "secrets" you want to hide.
And don't forget to leave this field blank. See attached image
Do let me know if you have anymore questions. Hope this help!