I 'm using repl.it to run my discord bot but I have encountered a problem. Sometimes, at the end of the day usually, whatever the users did does not save in the json file assigned to store the data. Does anyone know what is happening?
Hey i have had the same problem and it is because file changes do not persist if you are not in the editor.
The best thing you could do is use a database to store your data.
Take a look at some databases like mongo db and PostgreSQL.
Json data doesn't save at the end of the day