Keep Discord Bot Token Hidden
How do you keep a Discord Bot Token a secret?
Thanks
Lang(Python)
Voters
RYANTADIPARTHI (5999)
use encryption.
RayhanADev (1968)
@RYANTADIPARTHI wait what?
realTronsi (906)
use an .env
file, @RYANTADIPARTHI suggestion will not work
LiamDonohue (290)
use .env
EpicGamer007 (1607)
Just use a .env file, i do not think you need to encrypt it
@CT2224 Hi,
Yeah, I know.
The main part of making a Discord bot is storing the tokens.
The Repl.it also has the ability to keep your tokens safe and secure only when you create a file called
.env
and save the data there.No one can access it even when they Fork or Download the Repl.
Read this docs for more info:- https://docs.repl.it/repls/secret-keys
That's it
Thanks!
Hope this helps!