added fishyqr and libgps addons download in constants

This commit is contained in:
Adam Saudagar 2021-04-17 22:03:27 +05:30
parent 2dfaa19adc
commit ce1bc0391b
2 changed files with 9 additions and 0 deletions

View File

@ -1,3 +1,6 @@
apiversion = 2
chalutier = ("Chalutier", "https://github.com/fishyboteso/Chalutier/raw/619b4ab0b8ff91746afda855542e886d27b7a794/Chalutier_1.1.2.zip", 112)
lam2 = ("LibAddonMenu-2.0", "https://www.esoui.com/downloads/dl7/LibAddonMenu-2.0r32.zip", 32)
fishyqr = ("FishyQR", "https://github.com/fishyboteso/FishyQR/files/6329586/FishyQR.zip", 1)
libgps = ("LibAddonMenu-2.0", "https://cdn.esoui.com/downloads/file601/LibGPS_3_0_3.zip", 1)

View File

@ -71,6 +71,12 @@ class FullAuto(IEngine):
self.show_crop = False
def run(self):
addons_req = [libgps, lam2, fishyqr]
for addon in addons_req:
if not helper.addon_exists(*addon):
helper.install_addon(*addon)
FullAuto.state = State.NONE
self.gui.bot_started(True)