Files
Momentum/constants.py
2026-02-09 17:08:27 -06:00

35 lines
900 B
Python

import os
VALORANT_RANKS = [
"Iron 1","Iron 2","Iron 3",
"Bronze 1","Bronze 2","Bronze 3",
"Silver 1","Silver 2","Silver 3",
"Gold 1","Gold 2","Gold 3",
"Platinum 1","Platinum 2","Platinum 3",
"Diamond 1","Diamond 2","Diamond 3",
"Ascendant 1","Ascendant 2","Ascendant 3",
"Immortal 1","Immortal 2","Immortal 3",
"Radiant"
]
def env_int(key: str) -> int:
value = os.getenv(key)
if value is None:
print(f"⚠️ ENV {key} not set, defaulting to 0")
return 0
return int(value)
WORKOUTS = {
"Sit Ups": env_int("SITUPS"),
"Bicep Curls": env_int("BICEP_CURLS"),
"Pushups": env_int("PUSHUPS"),
"Squats": env_int("SQUATS"),
"Lunges": env_int("LUNGES"),
"Russian Twists": env_int("RUSSIAN_TWISTS"),
"Wall Pushups": env_int("WALL_PUSHUPS"),
}
ENABLED_WORKOUTS = {
k: v for k, v in WORKOUTS.items() if v > 0
}