From 2aff732bcd0e996e216ec7e87c56b63661460726 Mon Sep 17 00:00:00 2001 From: T_cat9000_2 Date: Mon, 4 Nov 2024 17:43:09 -0800 Subject: [PATCH] add logs in limitmoney() --- ching.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ching.py b/ching.py index b64f1ab..72e9417 100644 --- a/ching.py +++ b/ching.py @@ -2,6 +2,7 @@ import os money = 0 +attempt_amount = 0 # Ensure money.txt exists and initialize it with 0 if empty def __initialize_money_file(): @@ -107,6 +108,9 @@ def limitmoney(moneylimit): global money if money > moneylimit: money = moneylimit + print("money limit eceeded automatically set") + attempt_amount =+ 1 + print("attempt logged") # Initialize money file on library load __initialize_money_file()