From 2b0d7590cfcfdf92580abf35aa85b6ed228c9f13 Mon Sep 17 00:00:00 2001 From: Tanya <80748971+Tanya575@users.noreply.github.com> Date: Tue, 18 May 2021 15:06:57 +0400 Subject: [PATCH] update main.js --- Ep_01/index.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/Ep_01/index.js b/Ep_01/index.js index 9ec0648..8c8cc5f 100644 --- a/Ep_01/index.js +++ b/Ep_01/index.js @@ -1,5 +1,5 @@ const { Client } = require("discord.js"); -const { config } = require("dotenv"); +require('dotenv').config(); // Declares our bot, // the disableEveryone prevents the client to ping @everyone @@ -7,10 +7,6 @@ const client = new Client({ disableEveryone: true }); -config({ - path: __dirname + "/.env" -}) - // When the bot's online, what's in these brackets will be executed client.on("ready", () => { console.log(`Hi, ${client.user.username} is now online!`);