Implement better config storage #19

Open
opened 2024-06-02 16:29:31 -04:00 by logan · 1 comment
Owner

The server has a lot of specific config vars, the configs can't all be within the code.

There needs to be central config method that all modules can pull from

The server has a lot of specific config vars, the configs can't all be within the code. There needs to be central config method that all modules can pull from
logan added the
Kind/Enhancement
Reviewed
Confirmed
Priority
High
labels 2024-06-02 16:29:31 -04:00
logan added this to the Server Project project 2024-06-02 16:29:35 -04:00
Author
Owner

The configs also can't be server specific, I think the database should be used for discord server specific configs, this way it can be updated in real-time. Examples of discord server specific variables are: WELCOME_CHANNEL_ID, IGNORED_CHANNEL_IDS, LINKCOP_RESTRICTED_CHANNEL_IDS

The database could also be used for other non-core configs. Core being things like MONGO_URL, SERVER_PORT, LOG_LOCATION

The configs also can't be server specific, I think the database should be used for discord server specific configs, this way it can be updated in real-time. Examples of discord server specific variables are: WELCOME_CHANNEL_ID, IGNORED_CHANNEL_IDS, LINKCOP_RESTRICTED_CHANNEL_IDS The database could also be used for other non-core configs. Core being things like MONGO_URL, SERVER_PORT, LOG_LOCATION
Sign in to join this conversation.
No description provided.