Ask coding questions

← Back to all posts
client.login(process.env.TOKEN)
HammyJam

HOW DO I MAKE A ENV I KNOW WE HAVE TO MAKE a secret but how do i connect it? and stuff please give me a step by step tutorial

Voters
HammyJam
Comments
hotnewtop
HammyJam

thanks guys let me see if it works

Walker30263

It's not process.env.TOKEN, it should be process.env['TOKEN']

VulcanWM

So click the padlock button, then enter the the key TOKEN and in the value enter your bot’s token.
Then where you need to put your token, do process.env.TOKEN

HammyJam

sad no one cares