Skip to content
Sign UpLog In
Profile icon

Dann Munar

@DannMunar
Repls
Community
DannMunar
DannMunar
shared a Post
3 years ago
How to hide bot token?
I want to share my bot but i dunno how to hide token, anyone free to help? tia :)
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 solved1 year ago
JanekKocz
JanekKocz
i also need help, they removed .env1 year ago
CodingCactus
CodingCactus
you can store it in a .env file, which means that no one else can see it3 years ago