First of all run this in your terminal npm i dotenv then on the top of your main file require("dotenv").config(); and then u can use your env vars like process.env.DISCORD_JS_BOT_TOKEN