⚙️ Cogs

This commit is contained in:
Nikolaj Danger
2020-08-06 13:01:00 +02:00
parent 2d5b4e61c4
commit 5151e1faf7
9 changed files with 601 additions and 588 deletions

View File

@ -36,7 +36,7 @@ def giveMoney(user,targetUser,amount):
targetUser = getID(targetUser)
if amount > 0:
if targetUser.startswith("#"):
if targetUser != None:
if user in data:
if data[user]["money"] >= amount:
addMoney(user,-1 * amount)