process.env.TOKEN command not found?

So here is my code in the .env file:

TOKEN = %token here%

And for some reason I cannot access it through process.env.TOKEN.

MOD EDIT: removed token

You just leaked your bot token. Recommend you delete that and reset your token

No spaces in .env file.

Just remove spaces around variables. Hope it helps!


Hi @vamik64, I’ve removed your bot’s token from the post, but as @LightningsFury mentioned you should rotate the token just in case.

The token was fake, I tried showing that it was fake, it was something like this tH1s IS a f4k3 t0k3n but merged. It is fine anyway though :slight_smile: