gex
DIAdiscord.js - Imagine an app
•Created by gex on 2/18/2024 in #djs-questions
I'm new to discord.js and I'd like to learn about the .env file
Nice. It's working.
20 replies
DIAdiscord.js - Imagine an app
•Created by gex on 2/18/2024 in #djs-questions
I'm new to discord.js and I'd like to learn about the .env file
I'm going to use
config.json
.20 replies
DIAdiscord.js - Imagine an app
•Created by gex on 2/18/2024 in #djs-questions
I'm new to discord.js and I'd like to learn about the .env file
20 replies
DIAdiscord.js - Imagine an app
•Created by gex on 2/18/2024 in #djs-questions
I'm new to discord.js and I'd like to learn about the .env file
In the
.env
file, does the Token need to be enclosed in quotation marks?20 replies
DIAdiscord.js - Imagine an app
•Created by gex on 2/18/2024 in #djs-questions
I'm new to discord.js and I'd like to learn about the .env file
Yes.
20 replies
DIAdiscord.js - Imagine an app
•Created by gex on 2/18/2024 in #djs-questions
I'm new to discord.js and I'd like to learn about the .env file
I'm going to delete everything and start from the beginning. The first thing I'm going to do is
package.json
.20 replies
DIAdiscord.js - Imagine an app
•Created by gex on 2/18/2024 in #djs-questions
I'm new to discord.js and I'd like to learn about the .env file
Is it necessary to use
config.json
?20 replies
DIAdiscord.js - Imagine an app
•Created by gex on 2/18/2024 in #djs-questions
I'm new to discord.js and I'd like to learn about the .env file
Oh, so my
script.js
is where the Client
will be?20 replies
DIAdiscord.js - Imagine an app
•Created by gex on 2/18/2024 in #djs-questions
I'm new to discord.js and I'd like to learn about the .env file
20 replies
DIAdiscord.js - Imagine an app
•Created by gex on 2/18/2024 in #djs-questions
I'm new to discord.js and I'd like to learn about the .env file
I read. But I didn't find where that part was.
20 replies
DIAdiscord.js - Imagine an app
•Created by gex on 2/18/2024 in #djs-questions
I'm new to discord.js and I'd like to learn about the .env file
So, files like
kick.js
, ban.js
, clear.js
, help.js
... Would I have to get them all to run?20 replies
DIAdiscord.js - Imagine an app
•Created by gex on 2/18/2024 in #djs-questions
I'm new to discord.js and I'd like to learn about the .env file
Understood.
20 replies
DIAdiscord.js - Imagine an app
•Created by gex on 2/18/2024 in #djs-questions
I'm new to discord.js and I'd like to learn about the .env file
Ohhh
20 replies
DIAdiscord.js - Imagine an app
•Created by gex on 2/18/2024 in #djs-questions
I'm new to discord.js and I'd like to learn about the .env file
But is it used to run codes?
I'm not saying that the codes will be inside
.env
, but the command files like:
In each of the commands will I have to put something like client.login(/.env)
(example)?20 replies
DIAdiscord.js - Imagine an app
•Created by gex on 2/18/2024 in #djs-questions
I'm new to discord.js and I'd like to learn about the .env file
Yes, I think I did that.
20 replies
DIAdiscord.js - Imagine an app
•Created by gex on 2/18/2024 in #djs-questions
I'm new to discord.js and I'd like to learn about the .env file
I didn't understand. If I do this can I create several files and run them all in a
.env
file? Like this: https://i.imgur.com/gDYxANM.png20 replies
DIAdiscord.js - Imagine an app
•Created by gex on 2/18/2024 in #djs-questions
I'm new to discord.js and I'd like to learn about the .env file
discord.js
- npm install discord.js
package.json
- npm init
:20 replies