Ask coding questions

← Back to all posts
How to reload the new replt.it .env for discord.js bot
Xictaw (0)

I have been searching for a while but there seem to be no post regarding on how to reload the new repl.it .env file for discord.js bot is there a way to do it?

Answered by Coder100 (18200) [earned 5 cycles]
View Answer
Comments
hotnewtop
Coder100 (18200)

Never have you had to reload a file?

Xictaw (0)

@Coder100 I had but for the discord commands only and it's using Discord.Collection() while .env is repl.it

Coder100 (18200)

@Xictaw no

the .env file is not js
it is not anything
in fact
.env has been removed, in support for the new UI-based.

Xictaw (0)

@Coder100 That's why I ask how do I reload the new env

Xictaw (0)

@Coder100 then how to reload the secret variables?
because it doesn't seem to change the variable if we don't restart the project

Coder100 (18200)

well maybe that was a bug @Xictaw

Xictaw (0)

@Coder100 oh ok then, btw are you a moderator?

Xictaw (0)

I just got the answer and it's not possible