Skip to content

Commit

Permalink
feat: add support for 4080 and more 4090 stores (#3104)
Browse files Browse the repository at this point in the history
  • Loading branch information
bobbydp authored Jan 19, 2023
1 parent 8dab4bb commit d8915cf
Show file tree
Hide file tree
Showing 12 changed files with 731 additions and 60 deletions.
4 changes: 4 additions & 0 deletions docs/reference/filter.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
| `MAX_PRICE_SERIES_3080` | Maximum price allowed for a match, applies 3080 series cards (does not apply to these sites: Nvidia, Asus, EVGA) |
| `MAX_PRICE_SERIES_3080TI` | Maximum price allowed for a match, applies 3080 Ti series cards (does not apply to these sites: Nvidia, Asus, EVGA) |
| `MAX_PRICE_SERIES_3090` | Maximum price allowed for a match, applies 3090 series cards (does not apply to these sites: Nvidia, Asus, EVGA) |
| `MAX_PRICE_SERIES_4080_12G` | Maximum price allowed for a match, applies 4080 12G series cards (does not apply to these sites: Nvidia, Asus, EVGA) |
| `MAX_PRICE_SERIES_4080_16G` | Maximum price allowed for a match, applies 4080 16G series cards (does not apply to these sites: Nvidia, Asus, EVGA) |
| `MAX_PRICE_SERIES_4090` | Maximum price allowed for a match, applies 4090 series cards (does not apply to these sites: Nvidia, Asus, EVGA) |
| `MAX_PRICE_SERIES_CORSAIR_SF` | Maximum price allowed for a match, applies to Corsair PSUs |
| `MAX_PRICE_SERIES_DARKHERO` | Maximum price allowed for a match, applies to ASUS Dark Hero motherboards |
Expand Down Expand Up @@ -263,6 +265,8 @@ Used with the `SHOW_ONLY_SERIES` variable.
| Nvidia RTX 3080 | `3080` |
| Nvidia RTX 3080 Ti | `3080ti` |
| Nvidia RTX 3090 | `3090` |
| Nvidia RTX 4080 12G | `4080-12g` |
| Nvidia RTX 4080 16G | `4080-16g` |
| Nvidia RTX 4090 | `4090` |
| Corsair SFX PSU | `sf` |
| Crosshair VIII | `darkhero` |
Expand Down
2 changes: 2 additions & 0 deletions docs/reference/notification.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ Refer to https://github.com/node-apn/node-apn for config options.
| `DISCORD_NOTIFY_GROUP_3080` | Discord group to notify on 3080 stock |
| `DISCORD_NOTIFY_GROUP_3080TI` | Discord group to notify on 3080 Ti stock |
| `DISCORD_NOTIFY_GROUP_3090` | Discord group to notify on 3090 stock |
| `DISCORD_NOTIFY_GROUP_4080_12G` | Discord group to notify on 4080 12G stock |
| `DISCORD_NOTIFY_GROUP_4080_16G` | Discord group to notify on 4080 16G stock |
| `DISCORD_NOTIFY_GROUP_4090` | Discord group to notify on 4090 stock |
| `DISCORD_NOTIFY_GROUP_RYZEN5600` | Discord group to notify on 5600X stock |
| `DISCORD_NOTIFY_GROUP_RYZEN5800` | Discord group to notify on 5800X stock |
Expand Down
4 changes: 4 additions & 0 deletions dotenv-example
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ DISCORD_NOTIFY_GROUP_3070TI=
DISCORD_NOTIFY_GROUP_3080=
DISCORD_NOTIFY_GROUP_3080TI=
DISCORD_NOTIFY_GROUP_3090=
DISCORD_NOTIFY_GROUP_4080_12G=
DISCORD_NOTIFY_GROUP_4080_16G=
DISCORD_NOTIFY_GROUP_4090=
DISCORD_NOTIFY_GROUP_CORSAIR_SF=
DISCORD_NOTIFY_GROUP_RX6800=
Expand Down Expand Up @@ -61,6 +63,8 @@ MAX_PRICE_SERIES_3070TI=
MAX_PRICE_SERIES_3080=
MAX_PRICE_SERIES_3080TI=
MAX_PRICE_SERIES_3090=
MAX_PRICE_SERIES_4080_12G=
MAX_PRICE_SERIES_4080_16G=
MAX_PRICE_SERIES_4090=
MAX_PRICE_SERIES_CORSAIR_SF=
MAX_PRICE_SERIES_G4_DOORBELL_PRO=
Expand Down
4 changes: 4 additions & 0 deletions src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,8 @@ const notifications = {
3080: envOrArray(process.env.DISCORD_NOTIFY_GROUP_3080),
'3080ti': envOrArray(process.env.DISCORD_NOTIFY_GROUP_3080TI),
3090: envOrArray(process.env.DISCORD_NOTIFY_GROUP_3090),
'4080-12g': envOrArray(process.env.DISCORD_NOTIFY_GROUP_4080_12G),
'4080-16g': envOrArray(process.env.DISCORD_NOTIFY_GROUP_4080_16G),
4090: envOrArray(process.env.DISCORD_NOTIFY_GROUP_4090),
'captcha-deterrent': [],
darkhero: envOrArray(process.env.DISCORD_NOTIFY_GROUP_DARKHERO),
Expand Down Expand Up @@ -415,6 +417,8 @@ const store = {
3080: envOrNumber(process.env.MAX_PRICE_SERIES_3080),
'3080ti': envOrNumber(process.env.MAX_PRICE_SERIES_3080TI),
3090: envOrNumber(process.env.MAX_PRICE_SERIES_3090),
'4080-12g': envOrNumber(process.env.MAX_PRICE_SERIES_4080_12G),
'4080-16g': envOrNumber(process.env.MAX_PRICE_SERIES_4080_16G),
4090: envOrNumber(process.env.MAX_PRICE_SERIES_4090),
'captcha-deterrent': 0,
darkhero: envOrNumber(process.env.MAX_PRICE_SERIES_DARKHERO),
Expand Down
176 changes: 176 additions & 0 deletions src/store/model/amazon.ts
Original file line number Diff line number Diff line change
Expand Up @@ -779,6 +779,182 @@ export const Amazon: Store = {
series: 'sf',
url: 'https://www.amazon.com/dp/B07F84FJ1G',
},
{
brand: 'zotac',
cartUrl:
'https://www.amazon.com/gp/aws/cart/add.html?ASIN.1=B0BGJRHX1X&Quantity.1=1',
model: 'trinity oc',
series: '4090',
url: 'https://www.amazon.com/dp/B0BGJRHX1X',
},
{
brand: 'zotac',
cartUrl:
'https://www.amazon.com/gp/aws/cart/add.html?ASIN.1=B09D1VF7F8&Quantity.1=1',
model: 'amp extreme airo',
series: '4090',
url: 'https://www.amazon.com/dp/B09D1VF7F8',
},
{
brand: 'zotac',
cartUrl:
'https://www.amazon.com/gp/aws/cart/add.html?ASIN.1=B0BGJQBW6Z&Quantity.1=1',
model: 'trinity',
series: '4090',
url: 'https://www.amazon.com/dp/B0BGJQBW6Z',
},
{
brand: 'asus',
cartUrl:
'https://www.amazon.com/gp/aws/cart/add.html?ASIN.1=B0BGT61797&Quantity.1=1',
model: 'strix oc',
series: '4090',
url: 'https://www.amazon.com/dp/B0BGT61797',
},
{
brand: 'asus',
cartUrl:
'https://www.amazon.com/gp/aws/cart/add.html?ASIN.1=B0BGV6LQYR&Quantity.1=1',
model: 'tuf oc',
series: '4090',
url: 'https://www.amazon.com/dp/B0BGV6LQYR',
},
{
brand: 'gigabyte',
cartUrl:
'https://www.amazon.com/gp/aws/cart/add.html?ASIN.1=B0BGP87RQ2&Quantity.1=1',
model: 'aorus master',
series: '4090',
url: 'https://www.amazon.com/dp/B0BGP87RQ2',
},
{
brand: 'gigabyte',
cartUrl:
'https://www.amazon.com/gp/aws/cart/add.html?ASIN.1=B0BGP8FGNZ&Quantity.1=1',
model: 'gaming oc',
series: '4090',
url: 'https://www.amazon.com/dp/B0BGP8FGNZ',
},
{
brand: 'gigabyte',
cartUrl:
'https://www.amazon.com/gp/aws/cart/add.html?ASIN.1=B0BGP9X18Q&Quantity.1=1',
model: 'windforce',
series: '4090',
url: 'https://www.amazon.com/dp/B0BGP9X18Q',
},
{
brand: 'pny',
cartUrl:
'https://www.amazon.com/gp/aws/cart/add.html?ASIN.1=B0BG93V9GW&Quantity.1=1',
model: 'xlr8 verto epic x',
series: '4090',
url: 'https://www.amazon.com/dp/B0BG93V9GW',
},
{
brand: 'msi',
cartUrl:
'https://www.amazon.com/gp/aws/cart/add.html?ASIN.1=B0BG94BM2G&Quantity.1=1',
model: 'suprim liquid x',
series: '4090',
url: 'https://www.amazon.com/dp/B0BG94BM2G',
},
{
brand: 'msi',
cartUrl:
'https://www.amazon.com/gp/aws/cart/add.html?ASIN.1=B0BG92GY61&Quantity.1=1',
model: 'suprim',
series: '4090',
url: 'https://www.amazon.com/dp/B0BG92GY61',
},
{
brand: 'msi',
cartUrl:
'https://www.amazon.com/gp/aws/cart/add.html?ASIN.1=B0BG94PS2F&Quantity.1=1',
model: 'gaming x trio',
series: '4090',
url: 'https://www.amazon.com/dp/B0BG94PS2F',
},
{
brand: 'msi',
cartUrl:
'https://www.amazon.com/gp/aws/cart/add.html?ASIN.1=B0BG959RCF&Quantity.1=1',
model: 'gaming trio',
series: '4090',
url: 'https://www.amazon.com/dp/B0BG959RCF',
},
{
brand: 'zotac',
cartUrl:
'https://www.amazon.com/gp/aws/cart/add.html?ASIN.1=B0BKK1G181&Quantity.1=1',
model: 'trinity',
series: '4080-16g',
url: 'https://www.amazon.com/dp/B0BKK1G181',
},
{
brand: 'zotac',
cartUrl:
'https://www.amazon.com/gp/aws/cart/add.html?ASIN.1=B0BKK371SB&Quantity.1=1',
model: 'trinity oc',
series: '4080-16g',
url: 'https://www.amazon.com/dp/B0BKK371SB',
},
{
brand: 'asus',
cartUrl:
'https://www.amazon.com/gp/aws/cart/add.html?ASIN.1=B0BLGHRCLX&Quantity.1=1',
model: 'tuf',
series: '4080-16g',
url: 'https://www.amazon.com/dp/B0BLGHRCLX',
},
{
brand: 'asus',
cartUrl:
'https://www.amazon.com/gp/aws/cart/add.html?ASIN.1=B0BLGQHS53&Quantity.1=1',
model: 'tuf oc',
series: '4080-16g',
url: 'https://www.amazon.com/dp/B0BLGQHS53',
},
{
brand: 'msi',
cartUrl:
'https://www.amazon.com/gp/aws/cart/add.html?ASIN.1=B0BL61TNG1&Quantity.1=1',
model: 'ventus 3x',
series: '4080-16g',
url: 'https://www.amazon.com/dp/B0BL61TNG1',
},
{
brand: 'zotac',
cartUrl:
'https://www.amazon.com/gp/aws/cart/add.html?ASIN.1=B0BKK3RFT6&Quantity.1=1',
model: 'amp airo',
series: '4080-16g',
url: 'https://www.amazon.com/dp/B0BKK3RFT6',
},
{
brand: 'gigabyte',
cartUrl:
'https://www.amazon.com/gp/aws/cart/add.html?ASIN.1=B0BMNBJ1DF&Quantity.1=1',
model: 'eagle oc',
series: '4080-16g',
url: 'https://www.amazon.com/dp/B0BMNBJ1DF',
},
{
brand: 'msi',
cartUrl:
'https://www.amazon.com/gp/aws/cart/add.html?ASIN.1=B0BL668N1X&Quantity.1=1',
model: 'gaming x trio',
series: '4080-16g',
url: 'https://www.amazon.com/dp/B0BL668N1X',
},
{
brand: 'pny',
cartUrl:
'https://www.amazon.com/gp/aws/cart/add.html?ASIN.1=B0BG95T5WD&Quantity.1=1',
model: 'xlr8 verto epic x',
series: '4080-16g',
url: 'https://www.amazon.com/dp/B0BG95T5WD',
},
],
name: 'amazon',
};
126 changes: 108 additions & 18 deletions src/store/model/bandh.ts
Original file line number Diff line number Diff line change
Expand Up @@ -301,24 +301,6 @@ export const BAndH: Store = {
series: '4090',
url: 'https://www.bhphotovideo.com/c/product/1729258-REG/asus_tuf_rtx4090_o24g_gaming_geforce_rtx_4090_tuf.html',
},
{
brand: 'asus',
model: 'strix oc',
series: '4090',
url: 'https://www.bhphotovideo.com/c/product/1729257-REG/asus_rog_strix_rtx4090_o24g_gaming_geforce_rtx_4090_rog.html',
},
{
brand: 'gigabyte',
model: 'windforce',
series: '4090',
url: 'https://www.bhphotovideo.com/c/product/1729222-REG/gigabyte_gv_n4090wf3_24gd_geforce_rtx_4090_windforce.html',
},
{
brand: 'gigabyte',
model: 'gaming oc',
series: '4090',
url: 'https://www.bhphotovideo.com/c/product/1729221-REG/gigabyte_gv_n4090gaming_oc_24gd_geforce_rtx_4090_gaming.html',
},
{
brand: 'msi',
model: 'suprim x',
Expand Down Expand Up @@ -385,6 +367,114 @@ export const BAndH: Store = {
series: 'sf',
url: 'https://www.bhphotovideo.com/c/product/1560680-REG/corsair_cp_9020186_na_corsair_sf750_power_supply.html',
},
{
brand: 'pny',
model: 'xlr8 verto epic x',
series: '4080-16g',
url: 'https://www.bhphotovideo.com/c/product/1729444-REG/pny_vcg408016tfxxpb1_nvidia_geforce_rtx_4080.html',
},
{
brand: 'gigabyte',
model: 'gaming oc',
series: '4080-16g',
url: 'https://www.bhphotovideo.com/c/product/1731403-REG/gigabyte_gv_n4080gaming_oc_16gd_geforce_rtx_4080_16gb.html',
},
{
brand: 'gigabyte',
model: 'eagle oc',
series: '4080-16g',
url: 'https://www.bhphotovideo.com/c/product/1731405-REG/gigabyte_gv_n4080eagle_oc_16gd_geforce_rtx_4080_16gb.html',
},
{
brand: 'zotac',
model: 'amp extreme airo',
series: '4080-16g',
url: 'https://www.bhphotovideo.com/c/product/1732733-REG/zotac_zt_d40810b_10p_geforce_rtx_4080_amp.html',
},
{
brand: 'gigabyte',
model: 'aero oc',
series: '4080-16g',
url: 'https://www.bhphotovideo.com/c/product/1731404-REG/gigabyte_gv_n4080aero_oc_16gd_geforce_rtx_4080_16gb.html',
},
{
brand: 'zotac',
model: 'trinity',
series: '4080-16g',
url: 'https://www.bhphotovideo.com/c/product/1732735-REG/zotac_zt_d40810d_10p_geforce_rtx_4080_trinity.html',
},
{
brand: 'gigabyte',
model: 'eagle',
series: '4080-16g',
url: 'https://www.bhphotovideo.com/c/product/1731409-REG/gigabyte_gv_n4080eagle_16gd_geforce_rtx_4080_16gb.html',
},
{
brand: 'gigabyte',
model: 'master',
series: '4080-16g',
url: '',
},
{
brand: 'asus',
model: 'strix oc',
series: '4080-16g',
url: 'https://www.bhphotovideo.com/c/product/1733173-REG/asus_rog_strix_rtx4080_o16g_gaming_geforce_rtx_4080_republic.html',
},
{
brand: 'asus',
model: 'tuf oc',
series: '4080-16g',
url: 'https://www.bhphotovideo.com/c/product/1733163-REG/asus_tuf_rtx4080_o16g_gaming_geforce_rtx_4080_tuf.html',
},
{
brand: 'asus',
model: 'tuf',
series: '4080-16g',
url: 'https://www.bhphotovideo.com/c/product/1733171-REG/asus_tuf_rtx4080_16g_gaming_geforce_rtx_4080_tuf.html',
},
{
brand: 'msi',
model: 'suprim x',
series: '4080-16g',
url: 'https://www.bhphotovideo.com/c/product/1733724-REG/msi_g408016sx_geforce_rtx_4080_16gb.html',
},
{
brand: 'msi',
model: 'gaming x trio',
series: '4080-16g',
url: 'https://www.bhphotovideo.com/c/product/1733725-REG/msi_g408016gxt_geforce_rtx_4080_16gb.html',
},
{
brand: 'msi',
model: 'ventus 3x',
series: '4080-16g',
url: 'https://www.bhphotovideo.com/c/product/1733740-REG/msi_g408016v3x_geforce_rtx_4080_16gb.html',
},
{
brand: 'zotac',
model: 'trinity oc',
series: '4080-16g',
url: 'https://www.bhphotovideo.com/c/product/1732734-REG/zotac_zt_d40810j_10p_geforce_rtx_4080_trinity.html',
},
{
brand: 'msi',
model: 'ventus 3x oc',
series: '4080-16g',
url: 'https://www.bhphotovideo.com/c/product/1733739-REG/msi_g408016v3xc_geforce_rtx_4080_16gb.html',
},
{
brand: 'pny',
model: 'xlr8 verto oc',
series: '4080-16g',
url: '',
},
{
brand: 'pny',
model: 'xlr8 verto epic x',
series: '4080-16g',
url: 'https://www.bhphotovideo.com/c/product/1729444-REG/pny_vcg408016tfxxpb1_nvidia_geforce_rtx_4080.html',
},
],
name: 'bandh',
};
Loading

0 comments on commit d8915cf

Please sign in to comment.