Created method to check if "serveo" tunnel is online

This commit is contained in:
sTiKyt 2020-05-08 16:41:47 +03:00
parent 5ca3c9ffda
commit 59278d5665
No known key found for this signature in database
GPG Key ID: 510E1C3C9B2414B4

View File

@ -84,7 +84,13 @@ def start_ngrok(port):
def start_serveo(port):
def is_online():
serveo = requests.get("http://serveo.net")
if "temporarily disabled" in serveo.text:
return False
else:
return True
def random(port):
run_command('clear')
print('''