From a501cf703bb05f47af6240a4b16a3dc4dcf3baf5 Mon Sep 17 00:00:00 2001 From: Forrest Marvez Date: Sun, 20 Sep 2020 10:10:00 -0400 Subject: [PATCH] feat(store): add asus (#102) Co-authored-by: Jef LeCompte --- README.md | 11 ++++++----- src/store/model/asus.ts | 20 ++++++++++++++++++++ src/store/model/index.ts | 14 +++++++++----- 3 files changed, 35 insertions(+), 10 deletions(-) create mode 100644 src/store/model/asus.ts diff --git a/README.md b/README.md index ab618dc..fb7203a 100644 --- a/README.md +++ b/README.md @@ -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 :) -| | **Amazon** | **EVGA** | **Best Buy** | **B&H** | **Micro Center** | **Newegg** | **Nvidia** | -|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:| -| **3070**| | | | | | | | -| **3080** | `✔` | `✔` | `✔` | `✔` | `✔` | `✔` | `✔` | -| **3090** | | | | | | | | +| | **Amazon** | **ASUS** | **EVGA** | **Best Buy** | **B&H** | **Micro Center** | **Newegg** | **Nvidia** | +|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:| +| **3070**| | | | | | | | | +| **3080** | `✔` | `✔` | `✔` | `✔` | `✔` | `✔` | `✔` | `✔` | +| **3090** | | | | | | | | | ## Installation and prerequisites @@ -90,6 +90,7 @@ Here is a list of variables that you can use to customize your newly copied `.en | Best Buy | `bestbuy`| | Amazon | `amazon`| | Amazon.ca | `amazon-ca`| +| ASUS | `asus` | | B&H | `bandh`| | EVGA | `evga`| | Micro Center | `microcenter`| diff --git a/src/store/model/asus.ts b/src/store/model/asus.ts new file mode 100644 index 0000000..0f23753 --- /dev/null +++ b/src/store/model/asus.ts @@ -0,0 +1,20 @@ +import {Store} from './store'; + +export const Asus: Store = { + links: [ + { + brand: 'asus', + model: 'tuf oc', + url: 'https://store.asus.com/us/item/202009AM160000001/', + oosLabels: ['coming soon', 'temporarily sold out'] + }, + { + brand: 'asus', + model: 'tuf', + url: 'https://store.asus.com/us/item/202009AM150000004/', + oosLabels: ['coming soon', 'temporarily sold out'] + } + ], + name: 'asus' +}; + diff --git a/src/store/model/index.ts b/src/store/model/index.ts index d3a551d..fb842be 100644 --- a/src/store/model/index.ts +++ b/src/store/model/index.ts @@ -1,16 +1,20 @@ + +import {Amazon} from './amazon'; +import {AmazonCa} from './amazon-ca'; +import {Asus} from './asus'; import {BestBuy} from './bestbuy'; import {BAndH} from './bandh'; -import {Evga} from './evga'; -import {NewEgg} from './newegg'; -import {Amazon} from './amazon'; -import {MicroCenter} from './microcenter'; import {Config} from '../../config'; +import {Evga} from './evga'; +import {MicroCenter} from './microcenter'; +import {NewEgg} from './newegg'; import {Nvidia} from './nvidia'; -import {AmazonCa} from './amazon-ca'; + const masterList = new Map([ [Amazon.name, Amazon], [AmazonCa.name, AmazonCa], + [Asus.name, Asus], [BestBuy.name, BestBuy], [BAndH.name, BAndH], [Evga.name, Evga],