huge issue after saving the data into json file or sql file
AbdulrahmanShaw (1)

Hello guys,

please could anyone give us some help with our code.

We are making a discord study bot that runs timers for students and save their work and study timer into a database.

First when we run the bot, the bot works perfectly but after random amount of time or random amount of use the bot clears the database or edit it randomly(scatter), we tried a lot to know what is going on by changing the saving method from saving to SQL to saving to JSON file but unfortunately is issue is still the same.

The console is not giving any errors at all

Please if you know the issue help us.

Thanks for all

before the issue

after the issue

You are viewing a single comment. View All
Answered by xfinnbar (149) [earned 5 cycles]
View Answer
ch1ck3n (2380)

@AbdulrahmanShaw Replit deletes any changes made by the program. I advise you to use an external database such as mongodb.