Skip to content

Commit

Permalink
add logs in limitmoney()
Browse files Browse the repository at this point in the history
  • Loading branch information
webbrowser11 authored Nov 5, 2024
1 parent c215fc6 commit 2aff732
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ching.py
Original file line number Diff line number Diff line change
Expand Up @@ -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():
Expand Down Expand Up @@ -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()

0 comments on commit 2aff732

Please sign in to comment.