From 60c126a6b1ed1003721c3a0af5aeafec9a249cf1 Mon Sep 17 00:00:00 2001 From: Faizeen Hoque Date: Sun, 9 Nov 2025 13:15:41 +0600 Subject: [PATCH] fix: correct dotenv config path --- src/dev.js | 2 +- src/index.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/dev.js b/src/dev.js index 05756da2..7ef5c073 100644 --- a/src/dev.js +++ b/src/dev.js @@ -10,7 +10,7 @@ if (!process.argv[2]) { console.log(chalk.red(`[ERROR]`), chalk.white(`>>`), chalk.red(`Developer Badge`), chalk.white(`>>`), chalk.red(`Please provide a member id!`)) process.exit(1); } -require('dotenv').config('./.env'); +require('dotenv').config({ path: './.env' }); // Require database const mongoose = require('mongoose'); // Require the model diff --git a/src/index.js b/src/index.js index 9b059c7f..7cb645f1 100644 --- a/src/index.js +++ b/src/index.js @@ -1,6 +1,6 @@ const Discord = require('discord.js'); const chalk = require('chalk'); -require('dotenv').config('./.env'); +require('dotenv').config({ path: './.env' }); const axios = require('axios'); // Check if is up to date const { version } = require('.././package.json');