Merge branch 'main-fix' of https://github.com/MaiM-with-u/MaiBot into main-fix
This commit is contained in:
@@ -54,7 +54,9 @@ def send_heartbeat(server_url, client_id):
|
||||
sys = platform.system()
|
||||
try:
|
||||
headers = {"Client-ID": client_id, "User-Agent": f"HeartbeatClient/{client_id[:8]}"}
|
||||
data = json.dumps({"system": sys})
|
||||
data = json.dumps(
|
||||
{"system": sys, "Version": global_config.MAI_VERSION},
|
||||
)
|
||||
response = requests.post(f"{server_url}/api/clients", headers=headers, data=data)
|
||||
|
||||
if response.status_code == 201:
|
||||
|
||||
Reference in New Issue
Block a user