Skip to content

Commit

Permalink
feat: add more 50xx series, add templates for adding more links (#3191)
Browse files Browse the repository at this point in the history
As stated in the title I added 50 series links for Bestbuy, Newegg, Pny,
and Zotac. I also added some AMD CPUs. I also made copy paste templates
at the bottom so it is easier to bulk add cards. The biggest thing was
adding all of the Ubiquiti Switches, Cameras, Wifi, and Firewalls.

Enjoy!

---------

Co-authored-by: Jef LeCompte <[email protected]>
  • Loading branch information
Mr-Tech-13 and jef authored Jan 29, 2025
1 parent e18f231 commit ce6d084
Show file tree
Hide file tree
Showing 12 changed files with 666 additions and 3 deletions.
12 changes: 12 additions & 0 deletions dotenv-example
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,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_RYZEN9950X=
DISCORD_NOTIFY_GROUP_RYZEN9900X=
DISCORD_NOTIFY_GROUP_RYZEN9700X=
DISCORD_NOTIFY_GROUP_RYZEN9600X=
DISCORD_NOTIFY_GROUP_SONYPS5C=
DISCORD_NOTIFY_GROUP_SONYPS5DE=
DISCORD_NOTIFY_GROUP_XBOXSX=
Expand Down Expand Up @@ -79,6 +85,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_RYZEN9950X=
MAX_PRICE_SERIES_RYZEN9900X=
MAX_PRICE_SERIES_RYZEN9700X=
MAX_PRICE_SERIES_RYZEN9600X=
MAX_PRICE_SERIES_SONYPS5C=
MAX_PRICE_SERIES_SONYPS5DE=
MAX_PRICE_SERIES_XBOXSS=
Expand Down
18 changes: 17 additions & 1 deletion src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,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),
ryzen9600x: envOrArray(process.env.DISCORD_NOTIFY_GROUP_RYZEN9600X),
ryzen9700x: envOrArray(process.env.DISCORD_NOTIFY_GROUP_RYZEN9700X),
ryzen9900x: envOrArray(process.env.DISCORD_NOTIFY_GROUP_RYZEN9900X),
ryzen9950x: envOrArray(process.env.DISCORD_NOTIFY_GROUP_RYZEN9950X),
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 @@ -451,7 +457,12 @@ const store = {
ryzen5900: envOrNumber(process.env.MAX_PRICE_SERIES_RYZEN5900),
ryzen5950: envOrNumber(process.env.MAX_PRICE_SERIES_RYZEN5950),
ryzen7950x: envOrNumber(process.env.MAX_PRICE_SERIES_RYZEN7950X),
ryzen9800x3d: envOrNumber(process.env.MAX_PRICE_SERIES_RYZEN9800X3D),
ryzen7800x3d: envOrNumber(process.env.MAX_PRICE_SERIES_RYZEN7800X3D),
ryzen9800x3d: envOrNumber(process.env.MAX_PRICE_SERIES_RYZEN9800XX3D),
ryzen9600x: envOrNumber(process.env.MAX_PRICE_SERIES_RYZEN9600X),
ryzen9700x: envOrNumber(process.env.MAX_PRICE_SERIES_RYZEN9700X),
ryzen9900x: envOrNumber(process.env.MAX_PRICE_SERIES_RYZEN9900X),
ryzen9950x: envOrNumber(process.env.MAX_PRICE_SERIES_RYZEN9950X),
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 @@ -497,6 +508,11 @@ const store = {
'ryzen5900',
'ryzen5950',
'ryzen7950',
'ryzen9600x',
'ryzen9700x',
'ryzen9900x',
'ryzen9950x',
'ryzen7800x3d',
'ryzen9800x3d',
'sf',
'sonyps5c',
Expand Down
16 changes: 16 additions & 0 deletions src/store/model/amazon.ts
Original file line number Diff line number Diff line change
Expand Up @@ -982,3 +982,19 @@ 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/',
},
*/
49 changes: 49 additions & 0 deletions src/store/model/amd.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,55 @@ 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: 'ryzen9950x',
url: 'https://shop-us-en.amd.com/amd-ryzen-9-9950x-processor/',
},
{
brand: 'amd',
model: '9900x',
series: 'ryzen9900x',
url: 'https://shop-us-en.amd.com/amd-ryzen-9-9900x-processor/',
},
{
brand: 'amd',
model: '9700x',
series: 'ryzen9700x',
url: 'https://shop-us-en.amd.com/amd-ryzen-7-9700x-processor/',
},
{
brand: 'amd',
model: '9600x',
series: 'ryzen9600x',
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: '',
},
*/
12 changes: 12 additions & 0 deletions src/store/model/asus.ts
Original file line number Diff line number Diff line change
Expand Up @@ -181,3 +181,15 @@ 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: '',
},
*/
9 changes: 9 additions & 0 deletions src/store/model/bandh.ts
Original file line number Diff line number Diff line change
Expand Up @@ -478,3 +478,12 @@ export const BAndH: Store = {
],
name: 'bandh',
};

/* Copy Paste Template
{
brand: 'pny',
model: '',
series: '',
url: '',
},
*/
134 changes: 133 additions & 1 deletion src/store/model/bestbuy-ca.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export const BestBuyCa: Store = {
brand: 'msi',
model: 'ventus 3x',
series: '3060',
url: 'https://www.bestbuy.ca/en-ca/product/msi-nvidia-geforce-rtx-3060-ventus-3x-12gb-gddr6-video-card/15324508',
url: 'https://www.bestbuy.ca/en-ca/product/16595219',
},
{
brand: 'zotac',
Expand Down Expand Up @@ -229,7 +229,139 @@ export const BestBuyCa: Store = {
series: '3080ti',
url: 'https://www.bestbuy.ca/en-ca/product/nvidia-geforce-rtx-3080-ti-12gb-gddr6x-video-card/15530045',
},
{
brand: 'nvidia',
model: 'founders edition',
series: '5090',
url: 'https://www.bestbuy.ca/en-ca/product/18931348',
},
{
brand: 'nvidia',
model: 'founders edition',
series: '5080',
url: 'https://www.bestbuy.ca/en-ca/product/18931347',
},
{
brand: 'asus',
model: 'astral oc',
series: '5090',
url: 'https://www.bestbuy.ca/en-ca/product/19177947',
},
{
brand: 'asus',
model: 'astral oc',
series: '5080',
url: 'https://www.bestbuy.ca/en-ca/product/19177946',
},
{
brand: 'asus',
model: 'prime',
series: '5080',
url: 'https://www.bestbuy.ca/en-ca/product/18971064',
},
{
brand: 'asus',
model: 'tuf',
series: '5090',
url: 'https://www.bestbuy.ca/en-ca/product/18969272',
},
{
brand: 'msi',
model: 'ventus 3x oc',
series: '5080',
url: 'https://www.bestbuy.ca/en-ca/product/18938760',
},
{
brand: 'msi',
model: 'gaming trio oc',
series: '5080',
url: 'https://www.bestbuy.ca/en-ca/product/18938759',
},
{
brand: 'msi',
model: 'suprim liquid x',
series: '5080',
url: 'https://www.bestbuy.ca/en-ca/product/18938758',
},
{
brand: 'msi',
model: 'suprim liquid soc',
series: '5080',
url: 'https://www.bestbuy.ca/en-ca/product/18938757',
},
{
brand: 'msi',
model: 'vanguard soc launch edition',
series: '5080',
url: 'https://www.bestbuy.ca/en-ca/product/18938756',
},
{
brand: 'msi',
model: 'ventus 3x',
series: '5090',
url: 'https://www.bestbuy.ca/en-ca/product/18938755',
},
{
brand: 'msi',
model: 'suprim liquid x',
series: '5090',
url: 'https://www.bestbuy.ca/en-ca/product/18938754',
},
{
brand: 'msi',
model: 'vanguard',
series: '5090',
url: 'https://www.bestbuy.ca/en-ca/product/18938752',
},
{
brand: 'msi',
model: 'gaming trio oc',
series: '5090',
url: 'https://www.bestbuy.ca/en-ca/product/18938751',
},
{
brand: 'asus',
model: 'prime',
series: '5080',
url: 'https://www.bestbuy.ca/en-ca/product/18934247',
},
{
brand: 'pny',
model: 'triple fan oc',
series: '5080',
url: 'https://www.bestbuy.ca/en-ca/product/18934178',
},
{
brand: 'pny',
model: 'epic x oc',
series: '5080',
url: 'https://www.bestbuy.ca/en-ca/product/18934177',
},
{
brand: 'zotac',
model: 'solid',
series: '5090',
url: 'https://www.bestbuy.ca/en-ca/product/18931631',
},
{
brand: 'zotac',
model: 'solid oc',
series: '5080',
url: 'https://www.bestbuy.ca/en-ca/product/18931629',
},
],
name: 'bestbuy-ca',
waitUntil: 'domcontentloaded',
};

/* Copy Paste Template
Just paste product ID at the end of the link
{
brand: '',
model: '',
series: '',
url: 'https://www.bestbuy.ca/en-ca/product/',
},
*/
22 changes: 21 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,24 @@ 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

0 comments on commit ce6d084

Please sign in to comment.