17 lines
No EOL
489 B
Text
17 lines
No EOL
489 B
Text
import requests, traceback
|
|
status = [1, 0, 0]
|
|
try:
|
|
e = requests.get("https://sugarcane.node.swee.codes")
|
|
status[1] = e.ok
|
|
except:
|
|
print(traceback.format_exc())
|
|
status[1] = 0
|
|
try:
|
|
e = requests.get("https://licorice-webmin.swee.codes")
|
|
status[2] = e.ok
|
|
except:
|
|
print(traceback.format_exc())
|
|
status[2] = 0
|
|
check = "✅"
|
|
x = "❌"
|
|
print(f"Status: ✅ peppermint (main), {check if status[1] else x} sugarcane (unused), {check if status[2] else x} licorice (AI)") |