Skip to content
Sign UpLog In
This post is read-only. Explore Repls and connect with other creators on Community.View Community
The info in this post might be out of date, check out our docs instead. View docs
1

Keep Discord Bot Token Hidden

littlepenguin
littlepenguin

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

2 years ago

Voters

Comments

TopNew
3
PattanAhmed
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!

2 years ago
3
realTronsi
realTronsi

use an .env file,

@RYANTADIPARTHI
suggestion will not work

2 years ago
3
EpicGamer007
EpicGamer007

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

2 years ago
Load more