Skip to content

Commit

Permalink
add ability to block addmoney(moneytoadd)
Browse files Browse the repository at this point in the history
  • Loading branch information
webbrowser11 authored Nov 16, 2024
1 parent d0639f4 commit a5700a6
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions ching.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,11 @@ def __update_money_file():
# Add money to allowance
def addmoney(moneytoadd):
global money
money += moneytoadd
__update_money_file()
if AddMoneyAcsess != False:
money += moneytoadd
__update_money_file()
else:
print("sorry looks like your access to this function has been blocked for the rest of this session.")

# Subtract money from allowance
def minusmoney(moneytominus):
Expand All @@ -40,7 +43,7 @@ def printmoney():
if AddMoneyAcsess != False:
print(money)
else:
print("sorry looks like your acsess to this function has been blocked for the rest of this session.")
print("sorry looks like your access to this function has been blocked for the rest of this session.")

# Function to get the current date and log it to logfile.txt
def getdate():
Expand Down

0 comments on commit a5700a6

Please sign in to comment.