JSON File Data Corrupting

When I’m offline, and my Discord bot is online. Sometimes data isn’t being saved once updated in the JSON file. Is there any workaround for this?

2 Likes

You should use the replit database as staged files do not persist after program stops (you bot probably restarts)

3 Likes