Ask coding questions

← Back to all posts
Please help! I need to hide my token
frostedbutton75

What's wrong? It didn't run my token! I used Secrets.

Answered by VulcanWM [earned 5 cycles]
View Answer
Voters
frostedbutton75
Comments
hotnewtop
VulcanWM

are you sure you entered it with the right key and value?
also try using os.getenv("EPIC_BOT_TOKEN") instead

frostedbutton75

thank you @VulcanWM

frostedbutton75

how r u? @VulcanWM

VulcanWM

im okay wbu @frostedbutton75

frostedbutton75

its not working @VulcanWM

frostedbutton75

good :) btw why did you delete ur discord @VulcanWM

VulcanWM

try this code:

@frostedbutton75

VulcanWM

it got deleted i didnt delete it @frostedbutton75

frostedbutton75

Thank you! @VulcanWM

frostedbutton75

can u make a new 1? @VulcanWM

VulcanWM

it works now? @frostedbutton75

VulcanWM

im not bothered to @frostedbutton75

frostedbutton75

yes thx @VulcanWM

VulcanWM
SomeBoyPlayz

@frostedbutton75 fyi, when you get more features in the bot, you might want to rewrite the code and change to @client.command() instead of if message.content.startswith. its your choice anyway so you can decide

all I'm saying is that @client.command() is much neater.

frostedbutton75

Thank you! @SomeBoyPlayz

SomeBoyPlayz

@frostedbutton75 np, I'll send the sample code soon

SomeBoyPlayz

@frostedbutton75

frostedbutton75