Replit randomly deleted every file

Question:

https://replit.com/@golam71/dpy2
i hosted a discord bot here
now i read about the secret key incident ,so last time it happened i dont remeber but my secret keys were gone causing it to fail
then i replaced my secrets with new ones but now the files are gone
there was a single file named main.py
containing code of a discord bot that would send a message if a user says a banned word it also had OCR functionality to scan images

my guess is when i replaced the secret tokens the restore function of replit as in the lost key discovery it got confused that should it restore the secret keys or keep the once that it has now
and it deleted the main.py files too while it was trying

i want any admin or mod to recover this file for me
Screenshots, links, or other helpful context:

Hi @golam71 , welcome to the forums!
Can you try making a new main.py file and see if the code returns? This would happen if the file was deleted.

1 Like

This has happened to me before when I used nix libraries. Try recreating the files you used (e.g. main.py) and check their history.

2 Likes

yes you guys are right
thank you very much for the help
means a lot to me

2 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.