revert bug hunting to `get_endpoint()`

dev
Fotoente 2 years ago
parent 73b6c8de70
commit d714a19f6a

@ -21,11 +21,8 @@ def check_str_to_bool(text) -> bool:
def get_endpoint(instance: str) -> str:
print(instance)
print("Try Misskey...")
url = "https://" + instance + "/api/ping"
print(url)
req = requests.post(url)
if req.status_code == 200 and ("pong" in req.json()):
print("Misskey found...")

Loading…
Cancel
Save