nvidia-clerk
nvidia-clerk copied to clipboard
Add a way to customize Discord webhook notifications
I just want to add a webhook to my server that says something like "MODEL_NAME available at RETAILER_NAME. URL here: WEBSITE_URL"
Current code for my script:
@ECHO OFF
TITLE NVIDIA Clerk
ECHO This is for a Discord Webhook Bot, close window if you didn't mean to open this.
PAUSE
SET DISCORD_WEBHOOK_URL=https://discordapp.com/api/webhooks/#############
C:\Users\nater\nvidia-clerk-windows.exe -discord -region=USA -model=3080
PAUSE
Could we additionally add a way to specify the roleID or userID we want to be tagged on the message itself? Would make it easier to see notifications without having the whole channel set to notify all.
Could we add the URL for the page that has the card already in the cart, to the Discord notification?
no because only one person can use that link
@cmsj So yes and no, using -remote will allow for this behavior however there's no way to open the browser and to use that URL.
I added an @everyone for myself and recompiled it. That works pretty well but obviously isn't generic enough.
@ianmarmour I think an environment variable with a template should catch most of these cases. This could be a string that replaces a template value such as <CART_URL> with the actual URL. A second template with a <STORE_URL> could make sense when the bot is shared by multiple people.
how about just adding a "custom_msg_prefix" parameter to the program and then, in the notify function prepend the url variable (which is a message string at this point) with it.
That way the user can have a per process custom message like "@everyone something ".