refactor/commands support migrates player stats

This commit is contained in:
SowinskiBraeden committed 2023-10-28 14:24:30 -07:00
commit 6998791f92
17 files changed
+169 -284

No files matched your search

+1
View File
@@ -39,6 +39,7 @@ async function migrate() {
}
guild.server.playerstats.map(stat => stat.nitradoServerID = NitradoServerID);
guild.server.playerstats.map(stat => stat.bountiesLength = stat.bounties.length);
// write JSON to file
fs.writeFileSync(`${dir}/player_stats_backup.json`, JSON.stringify(guild.server.playerstats, null, 2));