Open-Source-Battle-Bot icon indicating copy to clipboard operation
Open-Source-Battle-Bot copied to clipboard

Auto Updating Database

Open GHSTDKN opened this issue 6 years ago • 4 comments

Previous versions of the script (back when it was paid had an auto updating of the database system, is there any chance we could see this return?) Untitled

GHSTDKN avatar May 23 '19 11:05 GHSTDKN

It is possible, however with every new commit it would force an auto update to occur even if the database is up to date. To avoid this I made the check optional. I'll have a think about it unless someone has an idea to avoid this.

RobertRautenbach avatar May 23 '19 23:05 RobertRautenbach

You could think about not save the database IDs in the help.txt. use the help.txt just for your help command. Create a new file with your python application on startup so you dont need add that file in your commits and your python application check if file exist then read from it the latest db_id and compare it which what the server send you.

If people want update with a new commit from you they can replace all old files with new files and your other file where you save the database IDs is still there and the decrypted database should also still be there.

New users will your application detect and create a new file and starting getting the db from server.

Is there a discord where we can meet up ?

PeterPlanlos avatar May 24 '19 04:05 PeterPlanlos

Probably the best idea. Should be super easy to do, just have to change around the code that is already there. If I get a chance to do it I'll try do it soon. Or hopefully someone else does and submits a pull request.

I don't really go on discord much anymore sorry

RobertRautenbach avatar May 24 '19 06:05 RobertRautenbach

okay, i had some other suggestions i dont want write them here. maybe ill take a look at python3 soon then i can pull you something.

regards Planlos

PeterPlanlos avatar May 24 '19 06:05 PeterPlanlos