Skip to content

Commit

Permalink
autokeys: remove key from pricelist
Browse files Browse the repository at this point in the history
  • Loading branch information
idinium96 committed Jul 31, 2020
1 parent 5db79c8 commit 8e6641e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/classes/MyHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -344,8 +344,8 @@ export = class MyHandler extends Handler {
}

if (process.env.ENABLE_AUTO_SELL_AND_BUY_KEYS === 'true' && this.checkAutokeysStatus === true) {
log.debug('Disabling Autokeys...');
this.updateToDisableAutokeys();
log.debug('Disabling Autokeys and removing key from pricelist...');
this.removeAutoKeys();
}

this.bot.listings.removeAll().asCallback(function(err) {
Expand Down Expand Up @@ -1774,7 +1774,7 @@ Autokeys status:-
this.alreadyUpdatedToBank = false;
this.alreadyUpdatedToBuy = false;
this.alreadyUpdatedToSell = false;
this.updateToDisableAutokeys();
this.removeAutoKeys();
} else if (isRemoveAutoKeys && !isEnableKeyBanking) {
// disable Autokeys when conditions to disable Autokeys matched
this.isBuyingKeys = false;
Expand All @@ -1784,7 +1784,7 @@ Autokeys status:-
this.alreadyUpdatedToBank = false;
this.alreadyUpdatedToBuy = false;
this.alreadyUpdatedToSell = false;
this.updateToDisableAutokeys();
this.removeAutoKeys();
} else if (isAlertAdmins && isAlreadyAlert !== true) {
// alert admins when low pure
this.isBuyingKeys = false;
Expand Down

0 comments on commit 8e6641e

Please sign in to comment.