Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

Add a way to customize Discord webhook notifications #107

Open
redstone2019 opened this issue Sep 25, 2020 · 6 comments
Open

Add a way to customize Discord webhook notifications #107

redstone2019 opened this issue Sep 25, 2020 · 6 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@redstone2019
Copy link
Collaborator

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

@ianmarmour ianmarmour added enhancement New feature or request help wanted Extra attention is needed labels Sep 25, 2020
@redstone2019 redstone2019 changed the title I there a way to customize Discord webhook notifications? Add a way to customize Discord webhook notifications Sep 27, 2020
@riky503
Copy link

riky503 commented Sep 28, 2020

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.

@cmsj
Copy link

cmsj commented Sep 28, 2020

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

@redstone2019
Copy link
Collaborator Author

no because only one person can use that link

@ianmarmour
Copy link
Owner

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

@electronstorm
Copy link

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.

@alopex92
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

6 participants