Implement better config storage #19
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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 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