refactor/commands support migrates player stats
This commit is contained in:
17 files changed
+169
-284
No files matched your search
@@ -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));
|
||||
|
||||
Reference in new issue
Block a user