This commit is contained in:
NikolajDanger
2020-08-04 18:54:49 +02:00
parent 88b6f4ac60
commit 0739d9e3ca

View File

@ -35,6 +35,7 @@ def giveMoney(user,targetUser,amount):
targetUser = getID(targetUser)
if amount > 0:
if targetUser.startswith("#"):
if user in data:
if data[user]["money"] >= amount:
@ -50,3 +51,6 @@ def giveMoney(user,targetUser,amount):
else:
logThis("They weren't in the system")
return "The target doesn't exist"
else:
logThis("They tried to steal")
return "Yeah, no. You can't do that"