mirror of
https://github.com/fotoente/MIsskey-ebooks-bot
synced 2024-09-20 05:51:57 +00:00
revert bug hunting to get_endpoint()
This commit is contained in:
parent
73b6c8de70
commit
d714a19f6a
1 changed files with 0 additions and 3 deletions
|
@ -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…
Reference in a new issue