From b523eef0a3a0c207c7d1f9d3be7b8e984d63b218 Mon Sep 17 00:00:00 2001 From: Hazem Krimi Date: Sat, 28 Nov 2020 20:40:33 +0100 Subject: [PATCH] Add dev environment variables --- .gitignore | 3 ++- index.js | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 9c81996..6ff8c81 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ node_modules/ nodemon.json -*.log \ No newline at end of file +*.log +.env \ No newline at end of file diff --git a/index.js b/index.js index 8885427..7ccffa5 100644 --- a/index.js +++ b/index.js @@ -1,3 +1,5 @@ +if (process.env.NODE_ENV !== 'production') require('dotenv').config(); + const { CommandoClient } = require('discord.js-commando'); const { Structures } = require('discord.js'); const { MessageEmbed } = require('discord.js');