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!`);