Moved the root.py and retrives.py functions to gets.py;
Created the sets.py. Both gets.py and sets.py have a brief explanation in their initial lines;
Removed the auto_create folder from WebUI/languages and ext/Shared/Languages and created the create_language function directly in fun-bots-helper.py.
All files had unused variables and imports removed.
The refactor contains: list comprehensions (preserving readability), simplification of loops, rename of some variables and functions aiming standardization, modularize almost all files, and static type all functions.
All the output files and the modifications in mod.db made by the fun-bots-helper.py in this branch were compared (using filecmp) to the same outputs and modifications made by the fun-bots-helper.py from master branch to grant that they're all the same after the refactor.
Fix typos and links in all documentation files.
The fun-bots-helper.py needs to be converted to an .exe file again.
There's a lot of changes:
root.py
andretrives.py
functions togets.py
;sets.py
. Bothgets.py
andsets.py
have a brief explanation in their initial lines;auto_create
folder fromWebUI/languages
andext/Shared/Languages
and created thecreate_language
function directly infun-bots-helper.py
.mod.db
made by thefun-bots-helper.py
in this branch were compared (usingfilecmp
) to the same outputs and modifications made by thefun-bots-helper.py
frommaster
branch to grant that they're all the same after the refactor.The
fun-bots-helper.py
needs to be converted to an.exe
file again.