Skip to content
← Back to Community
RE: Database for Discord Bot (discord.py)
Profile icon
JiwooBL

I coded my bot's database using sqlite. In the same directory, I created file.db as the database but nothing is saved permanently on file.db. Data gets wipe after some time. What can I do to save the changes permanently onto the file? I have db.commit and db.close in the code.

Voters
Profile icon
JiwooBL
Comments
hotnewtop
Profile icon
Vandesm14

You can use http://jsonstore.io as an external database since the file db's on repl.it don't really work due to their file issues. Although I'm pretty sure they fixed file-based db's, but I'm not sure.