Ask coding questions

← Back to all posts
bot token
showery (0)

how to hide discord bot token .env is not supporting anymore

Comments
hotnewtop
AlmightyDeaks (5)

use the secret variables on the side bar

showery (0)

@AlmightyDeaks i dont know how to use can u explain

AlmightyDeaks (5)

@showery first you click on the padlock on the side bar

then you put in the name in the name section then the value in hte value section and then if you click the save button you can add it in the same way as a .env file

AlmightyDeaks (5)

@showery have you fixed your bot

AlmightyDeaks (5)

@AlmightyDeaks if so can you tag that my answer is the solution to your problem so that people that search this find the solution as well

showery (0)

@AlmightyDeaks srry for late reply i did not understood yet............

AlmightyDeaks (5)

@showery

ok so you press the button I labelled 1
then write the name of your variable with something like "bot_token" in the place i labbled 2
then press put your token in the box I labled 3.
press add new secret and a button should appear that says something like import variable press that and rename "my_secret "it to what you wanted to use when you imported the .env varriable before