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
7

How to hide bot token?

DannMunar
DannMunar

I want to share my bot but i dunno how to hide token, anyone free to help? tia :)

3 years ago

Voters

Comments

TopNew
6
CodingCactus
CodingCactus

you can store it in a .env file, which means that no one else can see it

3 years ago
3
DannMunar
DannMunar

thank you i hid it now :)


@CodingCactus

3 years ago
3
JanekKocz
JanekKocz

i also need help, they removed .env

1 year ago
2
Saaem07
Saaem07

@JanekKocz
Python
Click on Secrets on left side of screen, then give game TOKEN in key and add the token in Value area then go to your discord bot main.py and then import os and then go to last line and type this bot.login(os.environ.get("TOKEN") and run the bot all your problems get solved

1 year ago
1
Saaem07
Saaem07

PYTHON
Click on Secrets on left side of screen, then give game TOKEN in key and add the token in Value area then go to your discord bot main.py and then import os and then go to last line and type this bot.login(os.environ.get("TOKEN") and run the bot all your problems get solved

1 year ago
Load more