LeventHAN / SquadStatsJSPRO

An advanced version of SquadStatJS (tracking your squad stats) with advanced discord commands to manage your discord server. (Soon with inbuild stat website)
MIT License
34 stars 29 forks source link

[Feature request] - "{prefix}add-sq" saveable/reusable config file #71

Closed Gitdishit closed 2 years ago

Gitdishit commented 2 years ago

Requesting feature update to resolve the pain involved with restarting the SquadStatsJSPRO node :

It's a little frustrating to have to reconfigured the KDA server roles and SquadJS SQL database connection each time the SquadStatJSPRO node is started.

If SquadStatsJSPro has already been run once (creating the KDA roles in the discord server), we need to manually delete the previously created KDA roles before we can start the SquadStatsJSPro node again.

If the KDA roles are not deleted from the Discord server before the '{prefix}add-sq' cmd is run on a freshly restarted node, when you've finished configuring and get a successful DB connection, you will be instead shown an error when adding a profile, as apposed to a successful message:

image

_

Solution I'd like to see Is it possible we can add the SQL values/details to the main config.js file for the SquadJS DB connection? Or perhaps, can we add a command to the bot to run/apply the last used/working SQL connection details, with a flag telling the 'add-sq' cmd to not run the 'add KDA roles' action for a 2nd time to avoid this error?

_

LeventHAN commented 2 years ago

Hey @Gitdishit as mentioned before in the discussions section main is not supported anymore... About the above issue/request it is already a thing in the new version (draft-1).

Edit: I've exams and can't put much time for this hobby project but within couple weeks I will release the new main which will have huge changes :)

PS: Restarting the node wouldn't/shouldn't force you to redo all the steps, but yeah I'm not going to spend time to resolve the above error since it is not a thing in the v2.1 (draft-1)

LeventHAN commented 2 years ago

@Gitdishit just because I want to help you, I will send you this demo guide for Northflank installation here, I hope this will help you out to install the new version (draft-1) 👍 If not just hit me up from discord will try to help you out in my spare free time.