chore: Some changes
This commit is contained in:
@@ -1,2 +1,5 @@
|
|||||||
.env
|
.env
|
||||||
.env.local
|
.env.local
|
||||||
|
|
||||||
|
proxy/env
|
||||||
|
proxy/__pycache__
|
||||||
|
|||||||
@@ -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,
|
||||||
|
|||||||
@@ -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,2 +1,3 @@
|
|||||||
selenium==4.43.0
|
selenium==4.43.0
|
||||||
websockets==16.0
|
websockets==16.0
|
||||||
|
python-dotenv==1.2.2
|
||||||
|
|||||||
@@ -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
|
||||||
Reference in New Issue
Block a user