Compare commits
No commits in common. "a6a62e84d360128f4c657b1fbe2f9249dc6feb38" and "6d4a1604167baa22758361e5d62fa03c3ca6dd33" have entirely different histories.
a6a62e84d3
...
6d4a160416
@ -32,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_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
|
||||||
|
|
||||||
|
Before Width: | Height: | Size: 6.2 KiB After Width: | Height: | Size: 6.2 KiB |
Before Width: | Height: | Size: 499 KiB After 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:
|
||||||
@ -165,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:
|
||||||
@ -206,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]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user