nvidia-clerk icon indicating copy to clipboard operation
nvidia-clerk copied to clipboard

Add a way to customize Discord webhook notifications

Open redstone2019 opened this issue 4 years ago • 6 comments

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

redstone2019 avatar Sep 25 '20 19:09 redstone2019

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.

riky503 avatar Sep 28 '20 12:09 riky503

Could we add the URL for the page that has the card already in the cart, to the Discord notification?

cmsj avatar Sep 28 '20 15:09 cmsj

no because only one person can use that link

redstone2019 avatar Sep 28 '20 16:09 redstone2019

@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.

ianmarmour avatar Sep 28 '20 17:09 ianmarmour

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.

electronstorm avatar Sep 29 '20 00:09 electronstorm

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 ".

alopex92 avatar Sep 29 '20 10:09 alopex92