diff --git a/stats.js b/stats.js index 7ec08a1..58b0da5 100644 --- a/stats.js +++ b/stats.js @@ -4,7 +4,7 @@ let PrankData = JSON.parse(fs.readFileSync("prankdata.txt")); let nbPrank = 0; let nbCrepe = 0; let meanCrepe = 0; -let userPrank = 0; +let userPrank = {}; for (var uid in PrankData) { if (PrankData[uid].type == "crêpe") {