Compare commits
	
		
			4 Commits
		
	
	
		
			v2.3
			...
			e259d99aaa
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| e259d99aaa | |||
| b453c99286 | |||
| b80fa29d21 | |||
| 3f84053a42 | 
							
								
								
									
										36
									
								
								README.md
									
									
									
									
									
								
							
							
						
						
									
										36
									
								
								README.md
									
									
									
									
									
								
							@@ -5,10 +5,10 @@
 | 
				
			|||||||
    <a href="https://creativecommons.org/licenses/by-nc/4.0/" target="_blank">
 | 
					    <a href="https://creativecommons.org/licenses/by-nc/4.0/" target="_blank">
 | 
				
			||||||
        <img src="https://img.shields.io/badge/License-CC%20BY--NC%204.0-8E44AD?style=flat-square" alt="License: CC BY-NC 4.0">
 | 
					        <img src="https://img.shields.io/badge/License-CC%20BY--NC%204.0-8E44AD?style=flat-square" alt="License: CC BY-NC 4.0">
 | 
				
			||||||
    </a>
 | 
					    </a>
 | 
				
			||||||
 | 
					 | 
				
			||||||
</div>
 | 
					</div>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
<div align="center" >
 | 
					<div align="center" >
 | 
				
			||||||
    <img src="https://git.djeex.fr/Djeex/nvidia-stock-bot/raw/branch/main/assets/img/nvidia-stock-bot-logo.png" alt="Nvidia Stock Bot" width="300">
 | 
					    <img src="https://git.djeex.fr/Djeex/nvidia-stock-bot/raw/branch/main/assets/img/nvidia-stock-bot-logo.png" style="border-radius: 10px;" alt="Nvidia Stock Bot" width="300">
 | 
				
			||||||
</div>
 | 
					</div>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
**Nvidia Stock Bot** - Un robot qui permet d'être alerté en temps réel des stocks de cartes graphiques **Nvidia RTX FE** grâce à des notifications Discord.
 | 
					**Nvidia Stock Bot** - Un robot qui permet d'être alerté en temps réel des stocks de cartes graphiques **Nvidia RTX FE** grâce à des notifications Discord.
 | 
				
			||||||
@@ -21,8 +21,6 @@
 | 
				
			|||||||
- [Installation docker sans le dépot (rapide)](#installation-sans-le-d%C3%A9pot-avec-docker-compose)
 | 
					- [Installation docker sans le dépot (rapide)](#installation-sans-le-d%C3%A9pot-avec-docker-compose)
 | 
				
			||||||
- [Installation docker avec le dépot (développeur)](#installation-avec-le-d%C3%A9pot)
 | 
					- [Installation docker avec le dépot (développeur)](#installation-avec-le-d%C3%A9pot)
 | 
				
			||||||
- [Installation avec Python (développeur)](#installation-avec-python)
 | 
					- [Installation avec Python (développeur)](#installation-avec-python)
 | 
				
			||||||
- [Captures d'écran](#captures-d%C3%A9cran)
 | 
					 | 
				
			||||||
- [Contributeurs](#contributeurs)
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
## Fonctionnalités
 | 
					## Fonctionnalités
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -32,7 +30,7 @@
 | 
				
			|||||||
- Choix de la fréquence de la vérification
 | 
					- Choix de la fréquence de la vérification
 | 
				
			||||||
- Choix du modèle à surveiller
 | 
					- Choix du modèle à surveiller
 | 
				
			||||||
 | 
					
 | 
				
			||||||
<img src="https://git.djeex.fr/Djeex/nvidia-stock-bot/raw/branch/main/assets/img/nvbot_schematics.png" align="center">
 | 
					<img src="https://git.djeex.fr/Djeex/nvidia-stock-bot/raw/branch/main/assets/img/nvbot.png"  align="center">
 | 
				
			||||||
 | 
					
 | 
				
			||||||
## Installation sans le dépot avec docker compose
 | 
					## Installation sans le dépot avec docker compose
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -88,20 +86,20 @@ Vous trouverez-ci dessous les instructions pour installer le dépot, compiler l'
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
**Cloner et paramétrer**
 | 
					**Cloner et paramétrer**
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- Clonez le repo :
 | 
					Clonez le repo :
 | 
				
			||||||
```sh
 | 
					```sh
 | 
				
			||||||
git clone https://git.djeex.fr/Djeex/nvidia-stock-bot.git
 | 
					git clone https://git.djeex.fr/Djeex/nvidia-stock-bot.git
 | 
				
			||||||
```
 | 
					```
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- Rendez vous dans le dossier `nvidia-stock-bot` et compilez l'image docker :
 | 
					Rendez vous dans le dossier `nvidia-stock-bot` et compilez l'image docker :
 | 
				
			||||||
```sh
 | 
					```sh
 | 
				
			||||||
docker build -t nvidia-stock-bot .
 | 
					docker build -t nvidia-stock-bot .
 | 
				
			||||||
```
 | 
					```
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- Puis rendez-vous dans le dossier `nvidia-stock-bot/docker` et éditez le fichier `.env` avec :
 | 
					Rendez-vous dans le dossier `nvidia-stock-bot/docker` et éditez le fichier `.env` avec :
 | 
				
			||||||
  - l'url de votre webhook discord
 | 
					- l'url de votre webhook discord
 | 
				
			||||||
  - les différents liens API et produits
 | 
					- les différents liens API et produits
 | 
				
			||||||
  - la fréquence de consultation des stock (par défaut 60s, attention à ne pas trop descendre sous peine de blocage de votre adresse IP par nVidia)
 | 
					- la fréquence de consultation des stock (par défaut 60s, attention à ne pas trop descendre sous peine de blocage de votre adresse IP par nVidia)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
**Lancer l'image**
 | 
					**Lancer l'image**
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -149,18 +147,4 @@ Vous trouverez ci-dessous comment exécuter directement le script Python. Avec c
 | 
				
			|||||||
  
 | 
					  
 | 
				
			||||||
  ```sh
 | 
					  ```sh
 | 
				
			||||||
  python nvidia-stock-bot.py
 | 
					  python nvidia-stock-bot.py
 | 
				
			||||||
  ```
 | 
					  ```
 | 
				
			||||||
 | 
					 | 
				
			||||||
## Captures d'écran
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
  <div align="center" >
 | 
					 | 
				
			||||||
    <img src="https://git.djeex.fr/Djeex/nvidia-stock-bot/raw/branch/main/assets/img/nvidia-stock-bot-discord.png" alt="Nvidia Stock Bot - captures">
 | 
					 | 
				
			||||||
</div>
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
## Contributeurs
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
On remercie pour leurs contributions :
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
- Djeex
 | 
					 | 
				
			||||||
- KevOut
 | 
					 | 
				
			||||||
- Extreme2pac
 | 
					 | 
				
			||||||
							
								
								
									
										
											BIN
										
									
								
								assets/img/RTX5000_pp.jpg
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								assets/img/RTX5000_pp.jpg
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| 
		 After Width: | Height: | Size: 18 KiB  | 
										
											Binary file not shown.
										
									
								
							| 
		 Before Width: | Height: | Size: 6.2 KiB  | 
							
								
								
									
										
											BIN
										
									
								
								assets/img/nvbot.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								assets/img/nvbot.png
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| 
		 After Width: | Height: | Size: 4.8 MiB  | 
										
											Binary file not shown.
										
									
								
							| 
		 Before Width: | Height: | Size: 499 KiB  | 
@@ -120,11 +120,10 @@ def send_discord_notification(gpu_name: str, product_link: str, products_price:
 | 
				
			|||||||
        ],
 | 
					        ],
 | 
				
			||||||
        "description": f"**:point_right: [Acheter maintenant]({product_link})**",
 | 
					        "description": f"**:point_right: [Acheter maintenant]({product_link})**",
 | 
				
			||||||
        "footer": {
 | 
					        "footer": {
 | 
				
			||||||
            "text": "NviBot • JV Hardware 2.0",
 | 
					            "text": "Par KevOut & Djeex"
 | 
				
			||||||
            "icon_url": "https://git.djeex.fr/Djeex/nvidia-stock-bot/raw/branch/main/assets/img/ds_wh_pp.jpg"
 | 
					 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
    payload = {"content": "@everyone", "username": "NviBot", "avatar_url": "https://git.djeex.fr/Djeex/nvidia-stock-bot/raw/branch/main/assets/img/ds_wh_pp.jpg", "embeds": [embed]}
 | 
					    payload = {"content": "@everyone", "username": "NviBot", "avatar_url": "https://git.djeex.fr/Djeex/nvidia-stock-bot/raw/branch/main/assets/img/RTX5000_pp.jpg", "embeds": [embed]}
 | 
				
			||||||
    try:
 | 
					    try:
 | 
				
			||||||
        response = requests.post(DISCORD_WEBHOOK_URL, json=payload)
 | 
					        response = requests.post(DISCORD_WEBHOOK_URL, json=payload)
 | 
				
			||||||
        if response.status_code == 204:
 | 
					        if response.status_code == 204:
 | 
				
			||||||
@@ -153,10 +152,8 @@ def send_out_of_stock_notification(gpu_name: str, product_link: str, products_pr
 | 
				
			|||||||
        "author": {
 | 
					        "author": {
 | 
				
			||||||
            "name": "Nvidia Founder Editions"
 | 
					            "name": "Nvidia Founder Editions"
 | 
				
			||||||
        },
 | 
					        },
 | 
				
			||||||
        
 | 
					 | 
				
			||||||
        "footer": {
 | 
					        "footer": {
 | 
				
			||||||
            "text": "NviBot • JV Hardware 2.0",
 | 
					            "text": "Par KevOut & Djeex"
 | 
				
			||||||
            "icon_url": "https://git.djeex.fr/Djeex/nvidia-stock-bot/raw/branch/main/assets/img/ds_wh_pp.jpg"
 | 
					 | 
				
			||||||
        },
 | 
					        },
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        "fields": [
 | 
					        "fields": [
 | 
				
			||||||
@@ -167,7 +164,7 @@ def send_out_of_stock_notification(gpu_name: str, product_link: str, products_pr
 | 
				
			|||||||
            }
 | 
					            }
 | 
				
			||||||
        ]
 | 
					        ]
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
    payload = {"username": "NviBot", "avatar_url": "https://git.djeex.fr/Djeex/nvidia-stock-bot/raw/branch/main/assets/img/ds_wh_pp.jpg", "embeds": [embed]}
 | 
					    payload = {"username": "NviBot", "avatar_url": "https://git.djeex.fr/Djeex/nvidia-stock-bot/raw/branch/main/assets/img/RTX5000_pp.jpg", "embeds": [embed]}
 | 
				
			||||||
    try:
 | 
					    try:
 | 
				
			||||||
        response = requests.post(DISCORD_WEBHOOK_URL, json=payload)
 | 
					        response = requests.post(DISCORD_WEBHOOK_URL, json=payload)
 | 
				
			||||||
        if response.status_code == 204:
 | 
					        if response.status_code == 204:
 | 
				
			||||||
@@ -193,8 +190,7 @@ def send_sku_change_notification(old_sku: str, new_sku: str, product_link: str):
 | 
				
			|||||||
        "color": 16776960,  # Jaune
 | 
					        "color": 16776960,  # Jaune
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        "footer": {
 | 
					        "footer": {
 | 
				
			||||||
            "text": "NviBot • JV Hardware 2.0",
 | 
					            "text": "Par KevOut & Djeex"
 | 
				
			||||||
            "icon_url": "https://git.djeex.fr/Djeex/nvidia-stock-bot/raw/branch/main/assets/img/ds_wh_pp.jpg"
 | 
					 | 
				
			||||||
        },
 | 
					        },
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        "fields": [
 | 
					        "fields": [
 | 
				
			||||||
@@ -209,7 +205,7 @@ def send_sku_change_notification(old_sku: str, new_sku: str, product_link: str):
 | 
				
			|||||||
    payload = {
 | 
					    payload = {
 | 
				
			||||||
        "content": "@everyone ⚠️ Potentiel drop imminent !",
 | 
					        "content": "@everyone ⚠️ Potentiel drop imminent !",
 | 
				
			||||||
        "username": "NviBot",
 | 
					        "username": "NviBot",
 | 
				
			||||||
        "avatar_url": "https://git.djeex.fr/Djeex/nvidia-stock-bot/raw/branch/main/assets/img/ds_wh_pp.jpg",
 | 
					        "avatar_url": "https://git.djeex.fr/Djeex/nvidia-stock-bot/raw/branch/main/assets/img/RTX5000_pp.jpg",
 | 
				
			||||||
        "embeds": [embed]
 | 
					        "embeds": [embed]
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
    
 | 
					    
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user