diff --git a/CHANGELOG.md b/CHANGELOG.md index 5d1d43e..aab1cdc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. ### Added - Energizing program - `PROGRAMS.md` +- Cautions message ### Changed - `README.md` modified - `AUTHORS.md` updated diff --git a/nafas/functions.py b/nafas/functions.py index 37f9be0..004df51 100644 --- a/nafas/functions.py +++ b/nafas/functions.py @@ -2,7 +2,7 @@ """nafas functions.""" import time -from nafas.params import NAFAS_DESCRIPTION, NAFAS_NOTICE, STANDARD_MENU, STANDARD_MENU_ORDER, STEP_MAP +from nafas.params import NAFAS_DESCRIPTION, NAFAS_NOTICE, NAFAS_CAUTIONS, STANDARD_MENU, STANDARD_MENU_ORDER, STEP_MAP from nafas.params import PROGRAMS, PROGRAM_DESCRIPTION, SOUND_MAP, STEP_TEMPLATE, CYCLE_TEMPLATE from nafas.params import SOUND_WARNING_MESSAGE, EXIT_MESSAGE, BAD_INPUT_MESSAGE, PROGRAM_END_MESSAGE from nafas.params import MINUTES_TEMPLATE, SECONDS_TEMPLATE, PROGRAM_TIME_TEMPLATE @@ -149,6 +149,7 @@ def description_print(): """ print("\n".join(justify(NAFAS_DESCRIPTION.split(), 100))) print(NAFAS_NOTICE) + print(NAFAS_CAUTIONS) def program_description_print(program_name, level, program_data): diff --git a/nafas/params.py b/nafas/params.py index c571ad7..72a0249 100644 --- a/nafas/params.py +++ b/nafas/params.py @@ -16,6 +16,14 @@ 3. When exhaling through your mouth, it is recommended to fold the lips """ +NAFAS_CAUTIONS = """ +Cautions: + +1. If you have any breathing or respiratory issues, consult your doctor before using Nafas +2. If you have asthma or high blood pressure should not hold the breath +3. If you feel dizzy, nauseous, or lightheaded stop practicing and rest +""" + NAFAS_VERSION = "0.8" SOUND_WARNING_MESSAGE = "Your device is not compatible with our underlying sound-playing library. You can refer to https://github.com/openscilab/nava." diff --git a/test/test.py b/test/test.py index 791cd94..523bd96 100644 --- a/test/test.py +++ b/test/test.py @@ -24,6 +24,13 @@ 2. Exhaling, you can use both nose and mouth 3. When exhaling through your mouth, it is recommended to fold the lips + +Cautions: + +1. If you have any breathing or respiratory issues, consult your doctor before using Nafas +2. If you have asthma or high blood pressure should not hold the breath +3. If you feel dizzy, nauseous, or lightheaded stop practicing and rest + >>> print("\\n".join(justify(["123"], 2))) 123 >>> print("\\n".join(justify(["123"], 1)))