Skip to content

Commit

Permalink
fix autokeys not synced with bptf listings
Browse files Browse the repository at this point in the history
  • Loading branch information
idinium96 committed Aug 4, 2020
1 parent 2fc81ec commit afe0a09
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/classes/MyHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2007,6 +2007,7 @@ Autokeys status:-
.addPrice(entry as EntryData, true)
.then(() => {
log.debug(`✅ Automatically added Mann Co. Supply Crate Key to sell.`);
this.bot.listings.checkBySKU('5021;6');
})
.catch(err => {
log.warn(`❌ Failed to add Mann Co. Supply Crate Key to sell automatically: ${err.message}`);
Expand Down Expand Up @@ -2048,6 +2049,7 @@ Autokeys status:-
.addPrice(entry as EntryData, true)
.then(() => {
log.debug(`✅ Automatically added Mann Co. Supply Crate Key to buy.`);
this.bot.listings.checkBySKU('5021;6');
})
.catch(err => {
log.warn(`❌ Failed to add Mann Co. Supply Crate Key to buy automatically: ${err.message}`);
Expand All @@ -2068,6 +2070,7 @@ Autokeys status:-
.addPrice(entry as EntryData, true)
.then(() => {
log.debug(`✅ Automatically added Mann Co. Supply Crate Key to bank.`);
this.bot.listings.checkBySKU('5021;6');
})
.catch(err => {
log.warn(`❌ Failed to add Mann Co. Supply Crate Key to bank automatically: ${err.message}`);
Expand All @@ -2088,6 +2091,7 @@ Autokeys status:-
.updatePrice(entry as EntryData, true)
.then(() => {
log.debug(`✅ Automatically disabled Autokeys.`);
this.bot.listings.checkBySKU('5021;6');
})
.catch(err => {
log.warn(`❌ Failed to disable Autokeys: ${err.message}`);
Expand Down Expand Up @@ -2129,6 +2133,7 @@ Autokeys status:-
.updatePrice(entry as EntryData, true)
.then(() => {
log.debug(`✅ Automatically updated Mann Co. Supply Crate Key to sell.`);
this.bot.listings.checkBySKU('5021;6');
})
.catch(err => {
log.warn(`❌ Failed to update Mann Co. Supply Crate Key to sell automatically: ${err.message}`);
Expand Down Expand Up @@ -2170,6 +2175,7 @@ Autokeys status:-
.updatePrice(entry as EntryData, true)
.then(() => {
log.debug(`✅ Automatically update Mann Co. Supply Crate Key to buy.`);
this.bot.listings.checkBySKU('5021;6');
})
.catch(err => {
log.warn(`❌ Failed to update Mann Co. Supply Crate Key to buy automatically: ${err.message}`);
Expand All @@ -2190,6 +2196,7 @@ Autokeys status:-
.updatePrice(entry as EntryData, true)
.then(() => {
log.debug(`✅ Automatically updated Mann Co. Supply Crate Key to bank.`);
this.bot.listings.checkBySKU('5021;6');
})
.catch(err => {
log.warn(`❌ Failed to update Mann Co. Supply Crate Key to bank automatically: ${err.message}`);
Expand All @@ -2202,6 +2209,7 @@ Autokeys status:-
.removePrice('5021;6', true)
.then(() => {
log.debug(`✅ Automatically remove Mann Co. Supply Crate Key.`);
this.bot.listings.checkBySKU('5021;6');
this.checkAutokeysStatus = false;
})
.catch(err => {
Expand Down

0 comments on commit afe0a09

Please sign in to comment.