Skip to content

Commit

Permalink
Fix SERVER_URL assignment in Lovense_ren.py
Browse files Browse the repository at this point in the history
  • Loading branch information
KiloOscarSix committed Apr 17, 2024
1 parent 7a5d695 commit 400dc19
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Lovense_ren.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]] = {
Expand Down Expand Up @@ -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
Expand All @@ -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",
Expand All @@ -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
Expand Down

0 comments on commit 400dc19

Please sign in to comment.