Skip to content

Commit

Permalink
feat(store): add pny (#295)
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuahiggins authored Sep 25, 2020
1 parent 9636572 commit f6760d3
Show file tree
Hide file tree
Showing 3 changed files with 64 additions and 5 deletions.
11 changes: 6 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@ The purpose of this bot is to get an Nvidia card. It tries multiple things to do

> :point_right: You may get false positives from time to time, so I apologize for that. The library currently waits for all calls to be completed before parsing, but sometimes this can have unknown behavior. Patience is a virtue :)
| | **Adorama** | **Amazon** | **Amazon (CA)** | **ASUS** | **B&H** | **Best Buy** | **Best Buy (CA)** | **EVGA** | **Micro Center** | **Newegg** | **Newegg (CA)** | **Nvidia** | **Office Depot** | **Zotac** |
|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|
| **3070**| | | | | | | | | | | | | | |
| **3080** | `` | `` | `` | `` | `` | `` | `` | `` | `` | `` | `` | `` | `` | `` |
| **3090** | `` | `` | `` | `` | `` | `` | `` | `` | | `` | `` | `` | | `` |
| | **Adorama** | **Amazon** | **Amazon (CA)** | **ASUS** | **B&H** | **Best Buy** | **Best Buy (CA)** | **EVGA** | **Micro Center** | **Newegg** | **Newegg (CA)** | **Nvidia** | **Office Depot** | **PNY** | **Zotac** |
|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|
| **3070**| | | | | | | | | | | | | | `` | |
| **3080** | `` | `` | `` | `` | `` | `` | `` | `` | `` | `` | `` | `` | `` | `` | `` |
| **3090** | `` | `` | `` | `` | `` | `` | `` | `` | | `` | `` | `` | | `` | `` |

## Installation and prerequisites

Expand Down Expand Up @@ -136,6 +136,7 @@ Here is a list of variables that you can use to customize your newly copied `.en
| Nvidia | `nvidia`|
| Nvidia (API) | `nvidia-api`|
| Office Depot | `officedepot`|
| PNY | `pny`|
| Zotac | `zotac`|

<details>
Expand Down
2 changes: 2 additions & 0 deletions src/store/model/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import {NeweggCa} from './newegg-ca';
import {Nvidia} from './nvidia';
import {NvidiaApi} from './nvidia-api';
import {OfficeDepot} from './officedepot';
import {Pny} from './pny';
import {Store} from './store';
import {Zotac} from './zotac';

Expand All @@ -38,6 +39,7 @@ const masterList = new Map([
[Nvidia.name, Nvidia],
[NvidiaApi.name, NvidiaApi],
[OfficeDepot.name, OfficeDepot],
[Pny.name, Pny],
[Zotac.name, Zotac]
]);

Expand Down
56 changes: 56 additions & 0 deletions src/store/model/pny.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
import {Store} from './store';

export const Pny: Store = {
labels: {
inStock: {
container: '#ctl01_lbtnAddToCart',
text: ['add to cart']
}
},
links: [
{
brand: 'test:brand',
model: 'test:model',
series: 'test:series',
url: 'https://www.pny.com/pny-geforce-gtx-1660-super-gaming-oc-sf'
},
{
brand: 'pny',
model: 'dual fan',
series: '3070',
url: 'https://www.pny.com/pny-geforce-rtx-3070-8gb-df'
},
{
brand: 'pny',
model: 'xlr8 rgb',
series: '3070',
url: 'https://www.pny.com/geforce-rtx-3070-xlr8-gaming-epic-x-rgb-triple-fan'
},
{
brand: 'pny',
model: 'xlr8 rgb',
series: '3080',
url: 'https://www.pny.com/geforce-rtx-3080-xlr8-gaming-epic-x-rgb-triple-fan-m'
},
{
brand: 'pny',
model: 'xlr8 rgb',
series: '3080',
url: 'https://www.pny.com/geforce-rtx-3080-xlr8-gaming-epic-x-rgb-triple-fan-p'
},
{
brand: 'pny',
model: 'xlr8 rgb',
series: '3090',
url: 'https://www.pny.com/geforce-rtx-3090-xlr8-gaming-epic-x-rgb-triple-fan-m'
},
{
brand: 'pny',
model: 'xlr8 rgb',
series: '3090',
url: 'https://www.pny.com/geforce-rtx-3090-xlr8-gaming-epic-x-rgb-triple-fan-p'
}
],
name: 'pny'
};

0 comments on commit f6760d3

Please sign in to comment.