chore: Some changes

This commit is contained in:
2026-04-21 18:14:04 +02:00
parent 55c4e4bd9b
commit 4508d78b89
5 changed files with 25 additions and 0 deletions
+3
View File
@@ -1,2 +1,5 @@
.env .env
.env.local .env.local
proxy/env
proxy/__pycache__
+1
View File
@@ -256,6 +256,7 @@ async fn handle_command(
"!match" => { "!match" => {
if let Some(tx) = handlers.get(&room_id) { if let Some(tx) = handlers.get(&room_id) {
let prefer_same_country = parts.contains(&"--same-country"); let prefer_same_country = parts.contains(&"--same-country");
log::info!("User {} requested a match (prefer_same_country={})", user_id, prefer_same_country);
let msg_id = match send_reply(room, reply_to, "🔍 Matching...").await { let msg_id = match send_reply(room, reply_to, "🔍 Matching...").await {
Ok(id) => id, Ok(id) => id,
Err(_) => return, Err(_) => return,
+3
View File
@@ -1,10 +1,13 @@
import asyncio import asyncio
import logging import logging
import websockets import websockets
from dotenv import load_dotenv
from config import LOCAL_HOST, LOCAL_PORT from config import LOCAL_HOST, LOCAL_PORT
from websocket_client import handle_connection from websocket_client import handle_connection
load_dotenv()
logging.basicConfig( logging.basicConfig(
level=logging.INFO, level=logging.INFO,
format="%(asctime)s [%(levelname)s] %(message)s", format="%(asctime)s [%(levelname)s] %(message)s",
+1
View File
@@ -1,2 +1,3 @@
selenium==4.43.0 selenium==4.43.0
websockets==16.0 websockets==16.0
python-dotenv==1.2.2
+17
View File
@@ -0,0 +1,17 @@
# Docker compose for only starting selenium grid
services:
selenium:
build: .
container_name: selenium
shm_size: 2gb
ports:
- "4444:4444"
environment:
- SE_VNC_NO_PASSWORD=1
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:4444/status"]
interval: 10s
timeout: 5s
retries: 5
start_period: 30s