Skip to content

Commit

Permalink
feat(store): add office depot (jef#157)
Browse files Browse the repository at this point in the history
Co-authored-by: Jef LeCompte <jeffreylec@gmail.com>
  • Loading branch information
2 people authored and Nolij committed Sep 21, 2020
1 parent 5e8cbe8 commit b11c936
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 6 deletions.
11 changes: 6 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,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** | **ASUS** | **EVGA** | **Best Buy** | **B&H** | **Micro Center** | **Newegg** | **Nvidia** |
|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|
| **3070**| | | | | | | | | |
| **3080** | `` | `` | `` | `` | `` | `` | `` | `` | `` |
| **3090** | | | | | | | | | |
| | **Adorama** | **Amazon** | **ASUS** | **EVGA** | **Best Buy** | **B&H** | **Micro Center** | **Newegg** | **Nvidia** | **Office Depot** |
|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|
| **3070**| | | | | | | | | | |
| **3080** | `` | `` | `` | `` | `` | `` | `` | `` | `` | `` |
| **3090** | | | | | | | | | | |

## Installation and prerequisites

Expand Down Expand Up @@ -110,6 +110,7 @@ Here is a list of variables that you can use to customize your newly copied `.en
| Newegg | `newegg`|
| Newegg.ca | `newegg-ca`|
| Nvidia | `nvidia`|
| Office Depot | `officedepot`|

#### Supported carriers

Expand Down
4 changes: 3 additions & 1 deletion src/store/model/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import {NewEgg} from './newegg';
import {NewEggCa} from './newegg-ca';
import {Nvidia} from './nvidia';
import {Store} from './store';
import {OfficeDepot} from './officedepot';

const masterList = new Map([
[Adorama.name, Adorama],
Expand All @@ -24,7 +25,8 @@ const masterList = new Map([
[MicroCenter.name, MicroCenter],
[NewEgg.name, NewEgg],
[NewEggCa.name, NewEggCa],
[Nvidia.name, Nvidia]
[Nvidia.name, Nvidia],
[OfficeDepot.name, OfficeDepot]
]);

const list = new Map();
Expand Down
29 changes: 29 additions & 0 deletions src/store/model/officedepot.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
import {Store} from './store';

export const OfficeDepot: Store = {
links: [
{
brand: 'TEST',
model: 'CARD',
series: 'debug',
url: 'https://www.officedepot.com/a/products/7189374/PNY-GeForce-RTX-3080-10GB-GDDR6X/'
},
{
brand: 'pny',
model: 'xlr8',
series: '3080',
url: 'https://www.officedepot.com/a/products/7189374/PNY-GeForce-RTX-3080-10GB-GDDR6X/'
},
{
brand: 'pny',
model: 'xlr8 rgb',
series: '3080',
url: 'https://www.officedepot.com/a/products/7791294/PNY-GeForce-RTX-3080-10GB-GDDR6X/'
}
],
labels: {
captcha: ['please verify you are a human'],
outOfStock: ['out of stock for delivery', 'out of stock']
},
name: 'officedepot'
};

0 comments on commit b11c936

Please sign in to comment.