From 400dc19fc2b13b595e1f15e6a778b90d42c2e117 Mon Sep 17 00:00:00 2001 From: Oscar Six <26691547+KiloOscarSix@users.noreply.github.com> Date: Wed, 17 Apr 2024 23:23:47 +0100 Subject: [PATCH] Fix SERVER_URL assignment in Lovense_ren.py --- Lovense_ren.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Lovense_ren.py b/Lovense_ren.py index eb55e2f..9ab2d1c 100644 --- a/Lovense_ren.py +++ b/Lovense_ren.py @@ -8,12 +8,12 @@ from game._lovense.LovenseAction_ren import LovenseAction +SERVER_URL: str + """renpy init python: """ -SERVER_IP = "http://82.9.123.190" - class Lovense: MAX_STRENGTHS: ClassVar[dict[LovenseAction, int]] = { @@ -136,7 +136,7 @@ def stop(self) -> None: def get_server_status(self) -> bool: try: - renpy.fetch(SERVER_IP, timeout=3) + renpy.fetch(SERVER_URL, timeout=3) except Exception as e: print(e) self.server_status = False @@ -152,7 +152,7 @@ def download_qr_code(self) -> None: try: content = renpy.fetch( - f"{SERVER_IP}/api/v1/lovense/qr_code", + f"{SERVER_URL}/api/v1/lovense/qr_code", method="POST", json={"uid": str(persistent.uuid), "uname": store.name}, result="json", @@ -170,7 +170,7 @@ def set_user(self) -> None: try: lovense_user = renpy.fetch( - f"{SERVER_IP}/api/v1/lovense/users/{persistent.uuid}" + f"{SERVER_URL}/api/v1/lovense/users/{persistent.uuid}" ) except Exception as e: self.server_status = False