Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add More 50xx series, and add copy paste templates for adding more links #3191

Open
wants to merge 9 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions dotenv-example
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,12 @@ DISCORD_NOTIFY_GROUP_RYZEN5600=
DISCORD_NOTIFY_GROUP_RYZEN5800=
DISCORD_NOTIFY_GROUP_RYZEN5900=
DISCORD_NOTIFY_GROUP_RYZEN5950=
DISCORD_NOTIFY_GROUP_RYZEN7800X3D=
DISCORD_NOTIFY_GROUP_RYZEN9800X3D=
DISCORD_NOTIFY_GROUP_RYZEN9600=
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also can I make a nit about these? Are the models 9600 or 9600X? I think the same applies for the other models.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah good catch they are x variants, not non x. I'll fix that when I'm at my desk next

DISCORD_NOTIFY_GROUP_RYZEN9700=
DISCORD_NOTIFY_GROUP_RYZEN9900=
DISCORD_NOTIFY_GROUP_RYZEN9950=
DISCORD_NOTIFY_GROUP_SONYPS5C=
DISCORD_NOTIFY_GROUP_SONYPS5DE=
DISCORD_NOTIFY_GROUP_XBOXSX=
Expand Down Expand Up @@ -75,6 +81,12 @@ MAX_PRICE_SERIES_RYZEN5600=
MAX_PRICE_SERIES_RYZEN5800=
MAX_PRICE_SERIES_RYZEN5900=
MAX_PRICE_SERIES_RYZEN5950=
MAX_PRICE_SERIES_RYZEN7800X3D=
MAX_PRICE_SERIES_RYZEN9800X3D=
MAX_PRICE_SERIES_RYZEN9600=
MAX_PRICE_SERIES_RYZEN9800=
MAX_PRICE_SERIES_RYZEN9900=
MAX_PRICE_SERIES_RYZEN9950=
MAX_PRICE_SERIES_SONYPS5C=
MAX_PRICE_SERIES_SONYPS5DE=
MAX_PRICE_SERIES_XBOXSS=
Expand Down
15 changes: 15 additions & 0 deletions src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,12 @@ const notifications = {
ryzen5800: envOrArray(process.env.DISCORD_NOTIFY_GROUP_RYZEN5800),
ryzen5900: envOrArray(process.env.DISCORD_NOTIFY_GROUP_RYZEN5900),
ryzen5950: envOrArray(process.env.DISCORD_NOTIFY_GROUP_RYZEN5950),
ryzen7800x3d: envOrArray(process.env.DISCORD_NOTIFY_GROUP_RYZEN7800X3D),
ryzen9800x3d: envOrArray(process.env.DISCORD_NOTIFY_GROUP_RYZEN9800X3D),
ryzen9600: envOrArray(process.env.DISCORD_NOTIFY_GROUP_RYZEN9600),
ryzen9700: envOrArray(process.env.DISCORD_NOTIFY_GROUP_RYZEN9700),
ryzen9900: envOrArray(process.env.DISCORD_NOTIFY_GROUP_RYZEN9900),
ryzen9950: envOrArray(process.env.DISCORD_NOTIFY_GROUP_RYZEN9950),
sf: envOrArray(process.env.DISCORD_NOTIFY_GROUP_CORSAIR_SF),
sonyps5c: envOrArray(process.env.DISCORD_NOTIFY_GROUP_SONYPS5C),
sonyps5de: envOrArray(process.env.DISCORD_NOTIFY_GROUP_SONYPS5DE),
Expand Down Expand Up @@ -441,6 +447,10 @@ const store = {
ryzen5950: envOrNumber(process.env.MAX_PRICE_SERIES_RYZEN5950),
ryzen7950x: envOrNumber(process.env.MAX_PRICE_SERIES_RYZEN7950X),
ryzen9800x3d: envOrNumber(process.env.MAX_PRICE_SERIES_RYZEN9800X3D),
ryzen9600: envOrNumber(process.env.MAX_PRICE_SERIES_RYZEN9600),
ryzen9700: envOrNumber(process.env.MAX_PRICE_SERIES_RYZEN9700),
ryzen9900: envOrNumber(process.env.MAX_PRICE_SERIES_RYZEN9900),
ryzen9950: envOrNumber(process.env.MAX_PRICE_SERIES_RYZEN9950),
sf: envOrNumber(process.env.MAX_PRICE_SERIES_CORSAIR_SF),
sonyps5c: envOrNumber(process.env.MAX_PRICE_SERIES_SONYPS5C),
sonyps5de: envOrNumber(process.env.MAX_PRICE_SERIES_SONYPS5DE),
Expand Down Expand Up @@ -486,6 +496,11 @@ const store = {
'ryzen5900',
'ryzen5950',
'ryzen7950',
'ryzen9600',
'ryzen99700',
'ryzen9900',
'ryzen9950',
'ryzen7800x3d',
'ryzen9800x3d',
'sf',
'sonyps5c',
Expand Down
13 changes: 13 additions & 0 deletions src/store/model/amazon.ts
Original file line number Diff line number Diff line change
Expand Up @@ -982,3 +982,16 @@ export const Amazon: Store = {
],
name: 'amazon',
};

/* Copy Paste Template
Copy the product id from the amazon URL.
For example if you have https://www.amazon.com/gp/product/B08M9R8HQY just copy B08M9R8HQY. Paste it after ASIN.1= in the cartUrl and at the end of /dp/ in the url.
{
brand: '',
cartUrl:
'https://www.amazon.com/gp/aws/cart/add.html?ASIN.1=&Quantity.1=1',
model: '',
series: '',
url: 'https://www.amazon.com/dp/',
},
*/
45 changes: 45 additions & 0 deletions src/store/model/amd.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,51 @@ export const Amd: Store = {
series: 'rx6700xt',
url: 'https://www.amd.com/en/direct-buy/5496921400/us',
},
{
brand: 'amd',
model: '9800x3d',
series: 'ryzen9800x3d',
url: 'https://shop-us-en.amd.com/amd-ryzen-7-9800x3d-processor/',
},
{
brand: 'amd',
model: '9950x',
series: 'ryzen9950',
url: 'https://shop-us-en.amd.com/amd-ryzen-9-9950x-processor/',
},
{
brand: 'amd',
model: '9900x',
series: 'ryzen9900',
url: 'https://shop-us-en.amd.com/amd-ryzen-9-9900x-processor/',
},
{
brand: 'amd',
model: '9700x',
series: 'ryzen9700',
url: 'https://shop-us-en.amd.com/amd-ryzen-7-9700x-processor/',
},
{
brand: 'amd',
model: '9600x',
series: 'ryzen9600',
url: 'https://shop-us-en.amd.com/amd-ryzen-5-9600x-processor/',
},
{
brand: 'amd',
model: '7800x3d',
series: 'ryzen7800x3d',
url: 'https://shop-us-en.amd.com/amd-ryzen-7-7800x3d-processor/',
},
],
name: 'amd',
};
/* Copy Paste Template
As of 01-12-2025 I cant figure out the add to cart URL. For now just copy the product page URL into the url field. -agpuperson
{
brand: 'amd',
model: '',
series: '',
url: '',
},
*/
9 changes: 9 additions & 0 deletions src/store/model/asus.ts
Original file line number Diff line number Diff line change
Expand Up @@ -181,3 +181,12 @@ export const Asus: Store = {
},
successStatusCodes: [[0, 399], 404],
};
/* Copy Paste Template
Asus depreciated item numbers, do not use. Instead just copy and paste the links like normal.
{
brand: '',
model: '',
series: '',
url: '',
},
*/
8 changes: 8 additions & 0 deletions src/store/model/bandh.ts
Original file line number Diff line number Diff line change
Expand Up @@ -478,3 +478,11 @@ export const BAndH: Store = {
],
name: 'bandh',
};
/* Copy Paste Template
{
brand: 'pny',
model: '',
series: '',
url: '',
},
*/
19 changes: 18 additions & 1 deletion src/store/model/bestbuy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -695,6 +695,13 @@ export const BestBuy: Store = {
series: 'arc',
url: 'https://api.bestbuy.com/click/-/6614154/pdp',
},
{
brand: 'nvidia',
cartUrl: 'https://api.bestbuy.com/click/-/6614154/cart',
model: 'founders edition',
series: '5070',
url: 'https://api.bestbuy.com/click/-/6614154/pdp',
},
{
brand: 'nvidia',
cartUrl: 'https://api.bestbuy.com/click/-/6614153/cart',
Expand All @@ -704,11 +711,21 @@ export const BestBuy: Store = {
},
{
brand: 'nvidia',
// cartUrl: 'https://api.bestbuy.com/click/-/6614151/cart',
cartUrl: 'https://api.bestbuy.com/click/-/6614151/cart',
model: 'founders edition',
series: '5090',
url: 'https://api.bestbuy.com/click/-/6614151/pdp',
},
],
name: 'bestbuy',
};
/* Copy Paste template
Paste the SKU from the site in between both sets of /-// example: /-/sku/cart, /-/sku/pdp
{
brand: '',
cartUrl: 'https://api.bestbuy.com/click/-//cart',
model: '',
series: '',
url: 'https://api.bestbuy.com/click/-//pdp',
},
*/
Loading
Loading