NKN1396 / Discord-EmojiToRole

A discord.js bot that assigns roles based on reactions to a message.
MIT License
58 stars 19 forks source link

.env #2

Closed ghost closed 2 years ago

ghost commented 4 years ago

Hello! Is there anyway to put the config.json to be a .env?

SpreeHertz commented 3 years ago

You'll have to change in some stuff.

First, you have to install the dotenv package, and change token to process.env.token in index.js.

If you don't mind me asking, why do you want to change it to .env? It works the same 🤷‍♀️