Check for non-existing files & init with default values

fixes #63
This commit is contained in:
Stijn De Clercq 2021-06-19 20:31:31 +02:00
parent 418dc41126
commit 7e5c4031c0
8 changed files with 67 additions and 1 deletions

View file

@ -0,0 +1,5 @@
{
"guessed": [],
"guesses": 0,
"word": ""
}

View file

@ -0,0 +1,9 @@
{
"interest": 0,
"lost": 0,
"poke": 0,
"prison": 0,
"birthdays": 0,
"channels": 0,
"remind": 0
}

View file

@ -0,0 +1,4 @@
{
"locked": false,
"until": -1
}

4
files/default/lost.json Normal file
View file

@ -0,0 +1,4 @@
{
"lost": 0,
"today": 0
}

19
files/default/stats.json Normal file
View file

@ -0,0 +1,19 @@
{
"cf": {
"h": 0,
"t": 0
},
"dice": {
"2": 0,
"5": 0,
"3": 0,
"6": 0,
"1": 0,
"4": 0
},
"rob": {
"robs_success": 0,
"robs_failed": 0,
"bail_paid": 0.0
}
}

View file

@ -0,0 +1,12 @@
{
"Algoritmen en Datastructuren 2": [],
"Communicatienetwerken": [],
"Computerarchitectuur": [],
"Functioneel Programmeren": [],
"Multimedia": [],
"Software Engineering Lab 1": [],
"Statistiek en Probabiliteit": [],
"Systeemprogrammeren": [],
"Webdevelopment": [],
"Wetenschappelijk Rekenen": []
}