Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add multiple presets #44

Open
FWDekker opened this issue Mar 1, 2023 · 0 comments
Open

add multiple presets #44

FWDekker opened this issue Mar 1, 2023 · 0 comments
Assignees
Labels
feature New feature or request

Comments

@FWDekker
Copy link
Owner

FWDekker commented Mar 1, 2023

users can currently configure MOMMY_COMPLIMENTS and MOMMY_ENCOURAGEMENTS to change what mommy will say. users who want a stricter, tougher mommy can thus configure mommy to do so by themselves, but I anticipate there will be a few categories of behaviour that many users will want. so why not add those to the default presets?

so, add a variable MOMMY_PRESET, which determines which preset is applied:

  • if the preset is unset (or unknown), the default (current) sentences are loaded, and then the user's configured templates optionally override that
  • if a preset is set (and exists), these override the user's configured templates (but not the *_CUSTOM variables, of course), since it does not make much sense to set both MOMMY_COMPLIMENTS and MOMMY_ENCOURAGEMENTS (unless a user wants to override only one of them, and use the other from the preset?)
@FWDekker FWDekker added the feature New feature or request label Mar 1, 2023
@FWDekker FWDekker self-assigned this Mar 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant