4 Commits

Author SHA1 Message Date
0822e309db Merge pull request 'Fixed footers' (#4) from wip into main
Reviewed-on: #4
2025-03-28 19:26:55 +01:00
85827eddc5 Fixed footers 2025-03-28 18:26:14 +00:00
a6a62e84d3 Merge pull request 'Nouveau footer - changement de nom des images' (#3) from wip into main
Reviewed-on: #3
2025-03-28 19:22:54 +01:00
06eef00c79 Nouveau footer - changement de nom des images 2025-03-28 18:20:37 +00:00
4 changed files with 11 additions and 7 deletions

View File

@ -32,7 +32,7 @@
- Choix de la fréquence de la vérification
- 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

View File

Before

Width:  |  Height:  |  Size: 6.2 KiB

After

Width:  |  Height:  |  Size: 6.2 KiB

View File

Before

Width:  |  Height:  |  Size: 499 KiB

After

Width:  |  Height:  |  Size: 499 KiB

View File

@ -120,10 +120,11 @@ def send_discord_notification(gpu_name: str, product_link: str, products_price:
],
"description": f"**:point_right: [Acheter maintenant]({product_link})**",
"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:
response = requests.post(DISCORD_WEBHOOK_URL, json=payload)
if response.status_code == 204:
@ -152,8 +153,10 @@ def send_out_of_stock_notification(gpu_name: str, product_link: str, products_pr
"author": {
"name": "Nvidia Founder Editions"
},
"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": [
@ -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:
response = requests.post(DISCORD_WEBHOOK_URL, json=payload)
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
"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": [
@ -205,7 +209,7 @@ def send_sku_change_notification(old_sku: str, new_sku: str, product_link: str):
payload = {
"content": "@everyone ⚠️ Potentiel drop imminent !",
"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]
}