Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🚧 add failsafe on updateOldPrices method #489

Merged
merged 2 commits into from
Mar 25, 2021

Conversation

idinium96
Copy link
Member

@idinium96 idinium96 commented Mar 22, 2021

Mostly for custom pricer user, but can also occur if you manually change the autoprice property of any item that does not exist in the pricer pricelist, i.e. most skins or some unusual that does not exist in the source pricelist should be manually priced, and then if you edit your pricelist.json and change the autoprice to true (or even if you use !update all=true&autoprice=true command), an error will occur here:

const grouped = groupedPrices[item.quality][item.killstreak];

and then your bot will use the temporary "hard-coded" key prices:

.catch(err => {
log.debug('❌ Unable to get key prices: ', err);
this.useTemporaryKeyPrices(entryKey);
return;

These changes will skip the affected item and temporarily disabled it.

Discovered by @Bonfire

EDIT:
Apparently, this will only occur on a custom autopricer.

@idinium96 idinium96 merged commit 0dbecdf into development Mar 25, 2021
@idinium96 idinium96 deleted the failsafe-updateOldPrices branch March 25, 2021 14:19
@idinium96 idinium96 mentioned this pull request Mar 25, 2021
idinium96 added a commit that referenced this pull request Mar 25, 2021
#498

## Changes
- 🚧 add failsafe on updateOldPrices method (#489)
    - new options.json property: `sendAlert.failedToUpdateOldPrices` (default is `true`)
- 🔄 update core dependencies:
    - `tf2-schema-2`: 🧪 add support for Chemistry Set (`!sku` command) (#490)
    - `bptf-listings-2`: 🔨 fix defindex for Exclusive Genuine items (#496)
- 🎭 `!getSlots` or `!listings` command (#499)
- 🔎 execute pricecheck on add, update, and remove commands (#500)
- 🔨 add missing `resetgroup` in `!update all=true` (#501)

## Fixes
- PPU: 
    - 🔨 fix the unintended rare occurrence (#497)
    - 🔨 fix info on auto-update partially priced item and update Discord Webhook embed color (#491)
- 🐛 fix manual pricing update reverted to autoprice - closes #488 (#492)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant