Ask coding questions

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

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 [earned 5 cycles]
View Answer
Voters
Xictaw
Comments
hotnewtop
Coder100

Never have you had to reload a file?

Xictaw

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

Coder100

@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

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

Xictaw

@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

well maybe that was a bug @Xictaw

Xictaw

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

Coder100
Xictaw

I just got the answer and it's not possible