This commit is contained in:
Nikolaj Danger
2020-07-31 17:08:07 +02:00
parent b0d791cc8b
commit 61c58610d6
3 changed files with 19 additions and 14 deletions

View File

@ -634,7 +634,11 @@ async def fiar(channel,command,user):
winner = data["4 in a row games"][str(channel)]["winner"]
if winner != 0:
with open("resources/games/games.json","w") as f:
json.dump(data,f,indent=4)
addMoney(data["4 in a row games"][str(channel)]["players"][winner].lower(),20)
with open("resources/games/games.json", "r") as f:
data = json.load(f)
del data["4 in a row games"][str(channel)]