Update hushup.py
This commit is contained in:
parent
157117c05f
commit
d3f8e884af
10
hushup.py
10
hushup.py
@ -40,11 +40,11 @@ load_dotenv()
|
||||
logging.basicConfig(level=logging.INFO, format='%(levelname)s: %(message)s')
|
||||
|
||||
# --- Configurable Settings (.env or defaults) ---
|
||||
MAX_REQUESTS = int(os.getenv('HUSHUP_MAX_REQUESTS', 20)) # Max API calls per session
|
||||
ITEMS_PER_REQUEST = int(os.getenv('HUSHUP_ITEMS_PER_REQUEST', 80))# Items per API call
|
||||
RATE_LIMIT_DELAY = float(os.getenv('HUSHUP_RATE_LIMIT_DELAY', 0.5)) # Sec between normal requests
|
||||
MUTE_DURATION = int(os.getenv('HUSHUP_MUTE_DURATION', 21600)) # Default mute duration (6h)
|
||||
MIN_ACTIVITIES = int(os.getenv('HUSHUP_MIN_ACTIVITIES', 10)) # Default activity threshold
|
||||
MAX_REQUESTS = int(os.getenv('HUSHUP_MAX_REQUESTS', 20)) # Max API calls per session
|
||||
ITEMS_PER_REQUEST = int(os.getenv('HUSHUP_ITEMS_PER_REQUEST', 80)) # Items per API call
|
||||
RATE_LIMIT_DELAY = float(os.getenv('HUSHUP_RATE_LIMIT_DELAY', 0.5)) # Sec between normal requests
|
||||
MUTE_DURATION = int(os.getenv('HUSHUP_MUTE_DURATION', 21600)) # Default mute duration (6h)
|
||||
MIN_ACTIVITIES = int(os.getenv('HUSHUP_MIN_ACTIVITIES', 10)) # Default activity threshold
|
||||
|
||||
def clear_credentials():
|
||||
"""Delete credential files if they exist."""
|
||||
|
Loading…
x
Reference in New Issue
Block a user