From 8e6641ed30b1ae41306810ea870d1f22f2ec5702 Mon Sep 17 00:00:00 2001 From: idinium96 Date: Fri, 31 Jul 2020 20:42:27 +0800 Subject: [PATCH] autokeys: remove key from pricelist --- src/classes/MyHandler.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/classes/MyHandler.ts b/src/classes/MyHandler.ts index 27297a790..0ecb36349 100644 --- a/src/classes/MyHandler.ts +++ b/src/classes/MyHandler.ts @@ -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) { @@ -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; @@ -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;