From fe3e8f960980e16de10b5d9a1ec117d9a2419fbd Mon Sep 17 00:00:00 2001 From: Djeex Date: Thu, 10 Jul 2025 07:30:21 +0000 Subject: [PATCH] Fixed README and docker-compose variables --- README.md | 1 - docker/.env | 11 +++++------ docker/compose.yaml | 16 ++++++++-------- 3 files changed, 13 insertions(+), 15 deletions(-) diff --git a/README.md b/README.md index be49f47..6d8fa69 100644 --- a/README.md +++ b/README.md @@ -54,7 +54,6 @@ services: environment: # Minimal environment variables - PRODUCT_NAMES= # Exact GPU name (e.g. "RTX 5080, RTX 5090") - - DISCORD_ROLES= # List of Discord roles ID (e.g. "<@&12345>, <@&6789>"), in the same order than PRODUCT_NAMES values. @everyone by default. - DISCORD_WEBHOOK_URL= # Your Discord webhook URL - API_URL_SKU= # API listing the product for your country - API_URL_STOCK= # API providing stock data for your country diff --git a/docker/.env b/docker/.env index a0596cf..52ab7b9 100644 --- a/docker/.env +++ b/docker/.env @@ -1,6 +1,5 @@ -DS_HOOK= # Your Discord webhook URL -FREQ= # Refresh frequency in seconds, default is 30 -API_URL_SKU= # API listing the product, default is https://api.nvidia.partners/edge/product/search?page=1&limit=100&locale=fr-fr&Manufacturer=Nvidia -API_URL_STOCK= # API used to check stock without specifying the SKU, default is https://api.store.nvidia.com/partner/v1/feinventory?locale=fr-fr&skus= -PRODUCT_URL= # Purchase URL of the GPU -PRODUCT_NAME= # The exact name of the GPU you're looking for, e.g., "RTX 5080" \ No newline at end of file +PRODUCT_NAMES= # Exact GPU name (e.g. "RTX 5080, RTX 5090") +DISCORD_WEBHOOK_URL= # Your Discord webhook URL +API_URL_SKU= # API listing the product for your country +API_URL_STOCK= # API providing stock data for your country +PRODUCT_URL= # GPU purchase URL for your country \ No newline at end of file diff --git a/docker/compose.yaml b/docker/compose.yaml index 965b1e0..2cbd3ff 100644 --- a/docker/compose.yaml +++ b/docker/compose.yaml @@ -6,11 +6,11 @@ services: env_file: - .env environment: - - DISCORD_WEBHOOK_URL=${DS_HOOK} - - REFRESH_TIME=${FREQ} - - API_URL_SKU=${API_URL_SKU} - - API_URL_STOCK=${API_URL_STOCK} - - PRODUCT_URL=${PRODUCT_URL} - - PRODUCT_NAME=${PRODUCT_NAME} - - PYTHONUNBUFFERED=1 # Allow to display log in real-time - command: python nvidia-stock-bot.py # Run the script \ No newline at end of file + # Minimal environment variables + - PRODUCT_NAMES=${PRODUCT_NAMES} # Exact GPU name (e.g. "RTX 5080, RTX 5090") + - DISCORD_WEBHOOK_URL=${DISCORD_WEBHOOK_URL} # Your Discord webhook URL + - API_URL_SKU=${API_URL_SKU} # API listing the product for your country + - API_URL_STOCK=${API_URL_STOCK} # API providing stock data for your country + - PRODUCT_URL=${PRODUCT_URL} # GPU purchase URL for your country + - PYTHONUNBUFFERED=1 # Enables real-time log output + command: python nvidia-stock-bot.py # Run the script \ No newline at end of file