added python files and fixed logs, gitignore
This commit is contained in:
12
python/admin.py
Normal file
12
python/admin.py
Normal file
@@ -0,0 +1,12 @@
|
||||
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()
|
||||
Reference in New Issue
Block a user