Initial commit

This commit is contained in:
mmichlol
2026-02-04 21:43:58 +01:00
commit f4ebea4dec
8 changed files with 520 additions and 0 deletions

10
sendMessage.py Normal file
View File

@@ -0,0 +1,10 @@
import requests
def send_message(message, server_ip, port):
url = f'http://{server_ip}:{port}/message' # Wstaw URL serwera
data = {'message': message} # Wiadomość jako dane JSON
response = requests.post(url, json=data)
if response.status_code == 200:
print("Wiadomość została pomyślnie wysłana!")
else:
print("Błąd podczas wysyłania wiadomości:", response.status_code)