From ce1bc0391b26f1c219ceb490e96f2ca66cf6c165 Mon Sep 17 00:00:00 2001 From: Adam Saudagar Date: Sat, 17 Apr 2021 22:03:27 +0530 Subject: [PATCH] added fishyqr and libgps addons download in constants --- fishy/constants.py | 3 +++ fishy/engine/fullautofisher/engine.py | 6 ++++++ 2 files changed, 9 insertions(+) diff --git a/fishy/constants.py b/fishy/constants.py index 78c59ae..7f48ab7 100644 --- a/fishy/constants.py +++ b/fishy/constants.py @@ -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) diff --git a/fishy/engine/fullautofisher/engine.py b/fishy/engine/fullautofisher/engine.py index c929bbc..787139e 100644 --- a/fishy/engine/fullautofisher/engine.py +++ b/fishy/engine/fullautofisher/engine.py @@ -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)