diff --git a/content/5.betises/2.python.md b/content/5.betises/2.python.md index d5ad6df..053ea49 100644 --- a/content/5.betises/2.python.md +++ b/content/5.betises/2.python.md @@ -26,6 +26,12 @@ Après moult déconvenues, je suis passé de ceci : ![Nvidia Stock bot](/img/betises/nvidia-stock-bot.svg) +Et plus récemment : + +![Nvidia Stock bot](/img/betises/nvidia-stock-bot-en-v4.svg) + +J'ai également eu la chance d'être référencé dans la fameuse [newsletter selfhost](https://selfh.st/weekly/2025-07-11/) ! + Plus d'infos directement sur le repo : diff --git a/public/img/betises/nvidia-stock-bot-en-v4.svg b/public/img/betises/nvidia-stock-bot-en-v4.svg new file mode 100644 index 0000000..f216d9e --- /dev/null +++ b/public/img/betises/nvidia-stock-bot-en-v4.svg @@ -0,0 +1,5 @@ + + +Updating variables(defined in theconfiguration)Discord WebhookURLExec frequencyCountryProducts NamesSetting localizationCountryError if incorrectvariable settingsXDiscord rolesLocaleslocalization.jsonCurrencyLanguageLocalizedAPI URLsCurrencylanguages.jsonTranslatedvariablesIf errorFallback to USXIf errorFallback to englishXenv_config.pyMapping rolesto product namesProducts NamesDiscord rolesProduct 1Product 2Role 1Role 2Error if numbers not matchingXPrinting all variablesvalues in logsStart the scriptmain.pyLoop product checkergpu_checker.pyQuerying Nvidia productsvia the previously configured API URLLocalizedProduct APIAPI response with a list of product information and saved SKUs/UPCsJSONIf different SKU?If similar SKU?Discord notificationVia the webhook urlDiscord WebhookURL!Stock APIBuilding the Stock API URLAPI_URLSKU+=Querying Nvidia's inventory via the previouslyconfigured API URLAPI_URLAPI responsewith statusSKUUPCLooking for in responseJSONIf out of stock If previoulsy in stockRecording the "out_of_stock" statusIf in stockRecording the "in_stock" statusDisplaying status in the log historyDiscord notificationVia the webhook urlURL du webhookDiscord!????UPC If previoulsy in stockIf previously out of stock??If previously out of stockDiscord notificationVia the webhook urlURL du webhookDiscord!JSONBuilding discordNotificationDiscord WebhookURLCurrencyDiscord rolesProducts NamesTranslatedvariablesnotifier.pyLocalizedStock APILocalizedProduct URLNvidia Stock Bot - v4.0Exec frequency \ No newline at end of file