Skip to content
Sign upLog in
← Back to Community

Keep Discord Bot Token Hidden

Profile icon
littlepenguinHacker

How do you keep a Discord Bot Token a secret?
Thanks
Lang(Python)

Answered by PattanAhmed [earned 5 cycles]
View Answer
Voters
Profile icon
Diabolo099Prese
Profile icon
littlepenguin
Comments
hotnewtop
Profile icon
PattanAhmed

@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!

Profile icon
RYANTADIPARTHI

use encryption.

Profile icon
RayhanADev

@RYANTADIPARTHI
wait what?

Profile icon
realTronsi

use an .env file,

@RYANTADIPARTHI
suggestion will not work

Profile icon
staticvoidliam7

use .env

Profile icon
EpicGamer007

Just use a .env file, i do not think you need to encrypt it

Profile icon
rnjn1

..177