Skip to content

Commit

Permalink
feat(store): add darkhero motherboard to asus and microcenter (#1336)
Browse files Browse the repository at this point in the history
  • Loading branch information
moodswung committed Dec 11, 2020
1 parent a44621f commit 29175c7
Show file tree
Hide file tree
Showing 7 changed files with 29 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/reference/filter.md
Expand Up @@ -8,6 +8,7 @@
| `MAX_PRICE_SERIES_3080` | Maximum price allowed for a match, applies 3080 series cards (does not apply to these sites: Nvidia, Asus, EVGA) | Default: leave empty for no limit, otherwise enter a price (enter whole dollar amounts only, avoid use of: dollar symbols, commas, and periods.) e.g.: `1234` - Cards above `1234` will be skipped. |
| `MAX_PRICE_SERIES_3090` | Maximum price allowed for a match, applies 3090 series cards (does not apply to these sites: Nvidia, Asus, EVGA) | Default: leave empty for no limit, otherwise enter a price (enter whole dollar amounts only, avoid use of: dollar symbols, commas, and periods.) e.g.: `1234` - Cards above `1234` will be skipped. |
| `MAX_PRICE_SERIES_CORSAIR_SF` | Maximum price allowed for a match, applies to Corsair PSUs | Default: leave empty for no limit, otherwise enter a price (enter whole dollar amounts only, avoid use of: dollar symbols, commas, and periods.) e.g.: `1234` - PSUs above `1234` will be skipped. |
| `MAX_PRICE_SERIES_DARKHERO` | Maximum price allowed for a match, applies to ASUS Dark Hero motherboards | Default: leave empty for no limit, otherwise enter a price (enter whole dollar amounts only, avoid use of: dollar symbols, commas, and periods.) e.g.: `1234` - PSUs above `1234` will be skipped. |
| `MAX_PRICE_SERIES_RYZEN5600` | Maximum price allowed for a match, applies AMD 5600 series cpus | Default: leave empty for no limit, otherwise enter a price (enter whole dollar amounts only, avoid use of: dollar symbols, commas, and periods.) e.g.: `1234` - CPUs above `1234` will be skipped. |
| `MAX_PRICE_SERIES_RYZEN5800` | Maximum price allowed for a match, applies AMD 5800 series cpus | Default: leave empty for no limit, otherwise enter a price (enter whole dollar amounts only, avoid use of: dollar symbols, commas, and periods.) e.g.: `1234` - CPUs above `1234` will be skipped. |
| `MAX_PRICE_SERIES_RYZEN5900` | Maximum price allowed for a match, applies AMD 5900 series cpus | Default: leave empty for no limit, otherwise enter a price (enter whole dollar amounts only, avoid use of: dollar symbols, commas, and periods.) e.g.: `1234` - CPUs above `1234` will be skipped. |
Expand Down Expand Up @@ -172,6 +173,7 @@ Used with the `SHOW_ONLY_SERIES` variable.
| `Nvidia RTX 3080` | `3080` |
| `Nvidia RTX 3090` | `3090` |
| `Corsair SFX PSU` | `sf` |
| `Crosshair VIII` | `darkhero` |
| `Sony PS5` | `sonyps5c` |
| `Sony PS5 Digital Edition` | `sonyps5de` |
| `Xbox Series S` | `xboxss` |
Expand Down
1 change: 1 addition & 0 deletions docs/reference/notification.md
Expand Up @@ -26,6 +26,7 @@ You can test your notification configuration by running `npm run test:notificati
| `DISCORD_NOTIFY_GROUP_RYZEN5800` | Discord group to notify on 5800X stock |
| `DISCORD_NOTIFY_GROUP_RYZEN5900` | Discord group to notify on 5900X stock |
| `DISCORD_NOTIFY_GROUP_RYZEN5950` | Discord group to notify on 5950X stock |
| `DISCORD_NOTIFY_GROUP_DARKHERO` | Discord group to notify on Dark Hero stock |
| `DISCORD_NOTIFY_GROUP_CORSAIR_SF` | Discord group to notify on Corsair SF stock |
| `DISCORD_NOTIFY_GROUP_SONYPS5C` | Discord group to notify on Sony PS5 stock |
| `DISCORD_NOTIFY_GROUP_SONYPS5DE` | Discord group to notify on Sony PS5 Digital stock |
Expand Down
2 changes: 2 additions & 0 deletions src/config.ts
Expand Up @@ -185,6 +185,7 @@ const notifications = {
3070: envOrArray(process.env.DISCORD_NOTIFY_GROUP_3070),
3080: envOrArray(process.env.DISCORD_NOTIFY_GROUP_3080),
3090: envOrArray(process.env.DISCORD_NOTIFY_GROUP_3090),
darkhero: envOrArray(process.env.DISCORD_NOTIFY_GROUP_DARKHERO),
rx6800: envOrArray(process.env.DISCORD_NOTIFY_GROUP_RX6800),
rx6800xt: envOrArray(process.env.DISCORD_NOTIFY_GROUP_RX6800XT),
rx6900xt: envOrArray(process.env.DISCORD_NOTIFY_GROUP_RX6900XT),
Expand Down Expand Up @@ -332,6 +333,7 @@ const store = {
3070: envOrNumber(process.env.MAX_PRICE_SERIES_3070),
3080: envOrNumber(process.env.MAX_PRICE_SERIES_3080),
3090: envOrNumber(process.env.MAX_PRICE_SERIES_3090),
darkhero: envOrNumber(process.env.MAX_PRICE_SERIES_DARKHERO),
rx6800: envOrNumber(process.env.MAX_PRICE_SERIES_RX6800),
rx6800xt: envOrNumber(process.env.MAX_PRICE_SERIES_RX6800XT),
rx6900xt: envOrNumber(process.env.MAX_PRICE_SERIES_RX6900XT),
Expand Down
7 changes: 7 additions & 0 deletions src/store/model/asus.ts
Expand Up @@ -51,6 +51,13 @@ export const Asus: Store = {
model: 'strix oc',
series: '3080',
url: 'https://store.asus.com/us/item/202009AM290000002'
},
{
brand: 'asus',
itemNumber: '202011AM200000003',
model: 'crosshair viii',
series: 'darkhero',
url: 'https://store.asus.com/us/item/202011AM200000003'
}
],
name: 'asus',
Expand Down
6 changes: 6 additions & 0 deletions src/store/model/microcenter.ts
Expand Up @@ -197,6 +197,12 @@ for (const microCenterLocation of microCenterLocations) {
model: 'amd reference',
series: 'rx6900xt',
url: `https://www.microcenter.com/product/632048/asrock-amd-radeon-rx-6900-xt-triple-fan-16gb-gddr6-pcie-40-graphics-card/?storeid=${storeId}`
},
{
brand: 'asus',
model: 'crosshair viii',
series: 'darkhero',
url: `https://www.microcenter.com/product/631349/asus-x570-rog-crosshair-viii-dark-hero-amd-am4-atx-motherboard/?storeid=${storeId}`
}
]);
}
Expand Down
9 changes: 9 additions & 0 deletions src/store/model/newegg.ts
Expand Up @@ -1011,6 +1011,15 @@ export const Newegg: Store = {
series: 'rx6800',
url:
'https://www.newegg.com/powercolor-radeon-rx-6800-axrx-6800-16gbd6-3dhr-oc/p/N82E16814131773'
},
{
brand: 'asus',
cartUrl:
'https://secure.newegg.com/Shopping/AddtoCart.aspx?Submit=ADD&ItemList=N82E16813119362',
model: 'crosshair viii',
series: 'darkhero',
url:
'https://www.newegg.com/asus-rog-crosshair-viii-dark-hero/p/N82E16813119362'
}
],
name: 'newegg',
Expand Down
2 changes: 2 additions & 0 deletions src/store/model/store.ts
Expand Up @@ -38,6 +38,7 @@ export type Series =
| '3070'
| '3080'
| '3090'
| 'darkhero'
| 'rx6800'
| 'rx6800xt'
| 'rx6900xt'
Expand Down Expand Up @@ -67,6 +68,7 @@ export type Model =
| 'aorus xtreme waterforce'
| 'aorus'
| 'challenger'
| 'crosshair viii'
| 'dual fan'
| 'dual oc'
| 'dual'
Expand Down

0 comments on commit 29175c7

Please sign in to comment.