Compare commits
13 Commits
b69b45a03f
...
v2.3
Author | SHA1 | Date | |
---|---|---|---|
0822e309db | |||
85827eddc5 | |||
a6a62e84d3 | |||
06eef00c79 | |||
6d4a160416 | |||
7894b03883 | |||
c787c61332 | |||
d6b5273e5a | |||
10ab4f6fc0 | |||
f133344f7a | |||
d1609d0776 | |||
bf5fa6203b | |||
aae087c91b |
25
README.md
25
README.md
@ -22,6 +22,7 @@
|
|||||||
- [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)
|
- [Captures d'écran](#captures-d%C3%A9cran)
|
||||||
|
- [Contributeurs](#contributeurs)
|
||||||
|
|
||||||
## Fonctionnalités
|
## Fonctionnalités
|
||||||
|
|
||||||
@ -31,7 +32,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.png" align="center">
|
<img src="https://git.djeex.fr/Djeex/nvidia-stock-bot/raw/branch/main/assets/img/nvbot_schematics.png" align="center">
|
||||||
|
|
||||||
## Installation sans le dépot avec docker compose
|
## Installation sans le dépot avec docker compose
|
||||||
|
|
||||||
@ -87,20 +88,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 .
|
||||||
```
|
```
|
||||||
|
|
||||||
Rendez-vous dans le dossier `nvidia-stock-bot/docker` et éditez le fichier `.env` avec :
|
- Puis 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**
|
||||||
|
|
||||||
@ -154,4 +155,12 @@ Vous trouverez ci-dessous comment exécuter directement le script Python. Avec c
|
|||||||
|
|
||||||
<div align="center" >
|
<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">
|
<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>
|
</div>
|
||||||
|
|
||||||
|
## Contributeurs
|
||||||
|
|
||||||
|
On remercie pour leurs contributions :
|
||||||
|
|
||||||
|
- Djeex
|
||||||
|
- KevOut
|
||||||
|
- Extreme2pac
|
Binary file not shown.
Before Width: | Height: | Size: 12 KiB |
BIN
assets/img/ds_wh_pp.jpg
Normal file
BIN
assets/img/ds_wh_pp.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 6.2 KiB |
Binary file not shown.
Before Width: | Height: | Size: 4.8 MiB |
BIN
assets/img/nvbot_schematics.png
Normal file
BIN
assets/img/nvbot_schematics.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 499 KiB |
@ -120,10 +120,11 @@ 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": "Par KevOut & Djeex"
|
"text": "NviBot • JV Hardware 2.0",
|
||||||
|
"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/RTX5000_pp.jpg", "embeds": [embed]}
|
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]}
|
||||||
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:
|
||||||
@ -152,8 +153,10 @@ 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": "Par KevOut & Djeex"
|
"text": "NviBot • JV Hardware 2.0",
|
||||||
|
"icon_url": "https://git.djeex.fr/Djeex/nvidia-stock-bot/raw/branch/main/assets/img/ds_wh_pp.jpg"
|
||||||
},
|
},
|
||||||
|
|
||||||
"fields": [
|
"fields": [
|
||||||
@ -164,7 +167,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/RTX5000_pp.jpg", "embeds": [embed]}
|
payload = {"username": "NviBot", "avatar_url": "https://git.djeex.fr/Djeex/nvidia-stock-bot/raw/branch/main/assets/img/ds_wh_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:
|
||||||
@ -190,7 +193,8 @@ def send_sku_change_notification(old_sku: str, new_sku: str, product_link: str):
|
|||||||
"color": 16776960, # Jaune
|
"color": 16776960, # Jaune
|
||||||
|
|
||||||
"footer": {
|
"footer": {
|
||||||
"text": "Par KevOut & Djeex"
|
"text": "NviBot • JV Hardware 2.0",
|
||||||
|
"icon_url": "https://git.djeex.fr/Djeex/nvidia-stock-bot/raw/branch/main/assets/img/ds_wh_pp.jpg"
|
||||||
},
|
},
|
||||||
|
|
||||||
"fields": [
|
"fields": [
|
||||||
@ -205,7 +209,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/RTX5000_pp.jpg",
|
"avatar_url": "https://git.djeex.fr/Djeex/nvidia-stock-bot/raw/branch/main/assets/img/ds_wh_pp.jpg",
|
||||||
"embeds": [embed]
|
"embeds": [embed]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user