This repository has been archived on 2026-05-19. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
de-socket-espace-room-server/python/admin.py

13 lines
347 B
Python

import socket
SERVER_IP = "127.0.0.1"
PORT = 5901
# Manually set the starting "input" for the first team
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.connect((SERVER_IP, PORT))
# Using "0" as the ID for the very first team's source
s.send("ADMIN SET 0 80".encode()) # Sets the first clue as 80
print(s.recv(1024).decode())
s.close()