Skip to content

move from config.json to .env system, update to discordjs@14, add linux instructions#136

Open
kxtzownsu wants to merge 7 commits into
Project-Reload:mainfrom
kxtzownsu:main
Open

move from config.json to .env system, update to discordjs@14, add linux instructions#136
kxtzownsu wants to merge 7 commits into
Project-Reload:mainfrom
kxtzownsu:main

Conversation

@kxtzownsu

Copy link
Copy Markdown

When I was attempting to run Reload Backend, I noticed there was no Linux support, prompting me to start a PR.

Whilst I was trying to run it on Linux, I noticed some of the packages were marked as deprecated, so I updated them.

I also noticed some issues with the configuration:

  • it wasn't in .gitignore, allowing anyone to accidentally commit their info (e.g: their bot token, game server IPs, etc, etc)
  • it used JSON instead of the standard .env that most projects already use

I updated the config system to now use .env rather than the old JSON system, while keeping code changes to as little as possible via config.js.

(P.S: I also made it where .env is in .gitignore)

kxtzownsu and others added 7 commits July 25, 2026 11:39
DiscordJS @ v13 and UUID @ v9 is now deprecated.

This commit updates us to DiscordJS @ v14 and UUID @ v11. (uuid@11 is the latest we
can go, as past that CommonJS is deprecated).

This commit also switches us to use bcryptjs, which doesn't require any API changes.

Finally, this commit will switch us to use a proper `.env` configuration style while still
making sure most of the code doesn't need to be changed to support this new style.

Signed-off-by: kxtzownsu <kxtzownsu@gmail.com>
Previously, we were still using DJS@v13-specific APIs.

Now, this uses the proper DJS@v14 APIs.

Signed-off-by: kxtzownsu <kxtzownsu@gmail.com>
Signed-off-by: kxtzownsu <kxtzownsu@gmail.com>
Signed-off-by: kxtzownsu <kxtzownsu@gmail.com>
Signed-off-by: kxtzownsu <kxtzownsu@gmail.com>
This allows us to change the XMPP port if needed. (e.g: routing via nginx)

Signed-off-by: kxtzownsu <kxtzownsu@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant