Skip to content

Commit

Permalink
update a variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
idinium96 committed Jul 18, 2020
1 parent dfd625a commit 1a4da92
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ Time will be use in "!time" command and

- `DISABLE_ACCEPT_INVALID_ITEMS_OVERPAY`: [true|false] - Default: false. Set to true if you want your bot to accept a trade with INVALID_ITEMS but with their value more or equal to our value.
- `DISABLE_ACCEPT_OVERSTOCKED_OVERPAY`: [true|false] - Default: false. Set to true if you want your bot to accept a trade with OVERSTOCKED but with their value more or equal to our value.
- `DISABLE_AUTOMATIC_DECLINE_ONLY_INVALID_VALUE`: [true|false]: Default: false. Set to true if you want to automatically decline trade with **ONLY** `INVALID_VALUE` and did not match the exception sku(s) and exception value.
- `DISABLE_AUTO_DECLINE_INVALID_VALUE`: [true|false]: Default: false. Set to true if you want to automatically decline trade with **ONLY** `INVALID_VALUE` and did not match the exception sku(s) and exception value.

- `INVALID_VALUE_EXCEPTION_SKUS` [StringArray] - An array of sku that will skip Invalid value if the difference between our and their value is not more than exception value in ref. Let say you want to trade an unusual, but then someone sent an offer with 0.11 ref less, but you want your bot to accept it anyway if it's less than 10 ref, so the trade will be accepted. By default, it will check only for any unusual and australium: `[";5;u", ";11;australium"]`, you can also leave it empty (`[""]`) so all with invalid value will be notified.
- `INVALID_VALUE_EXCEPTION_VALUE_IN_REF` [Number] - Exception value for the sku(s) that you set above. Default is `0` (no exception).
Expand Down
2 changes: 1 addition & 1 deletion src/classes/MyHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1060,7 +1060,7 @@ export = class MyHandler extends Handler {
return { action: 'accept', reason: 'VALID' };
} else if (
// If only INVALID_VALUE and did not matched exception value, will just decline the trade.
process.env.DISABLE_AUTOMATIC_DECLINE_ONLY_INVALID_VALUE !== 'true' &&
process.env.DISABLE_AUTO_DECLINE_INVALID_VALUE !== 'true' &&
uniqueReasons.includes('🟥INVALID_VALUE') &&
!(
uniqueReasons.includes('🟨INVALID_ITEMS') ||
Expand Down
2 changes: 1 addition & 1 deletion template.ecosystem.json
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@

"DISABLE_ACCEPT_INVALID_ITEMS_OVERPAY": false,
"DISABLE_ACCEPT_OVERSTOCKED_OVERPAY": false,
"DISABLE_AUTOMATIC_DECLINE_ONLY_INVALID_VALUE": true,
"DISABLE_AUTO_DECLINE_INVALID_VALUE": true,

"INVALID_VALUE_EXCEPTION_SKUS": [";5;u", ";11;australium"],
"INVALID_VALUE_EXCEPTION_VALUE_IN_REF": 0,
Expand Down
2 changes: 1 addition & 1 deletion template.env
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ DISABLE_SHOW_CURRENT_TIME=false

DISABLE_ACCEPT_INVALID_ITEMS_OVERPAY=false
DISABLE_ACCEPT_OVERSTOCKED_OVERPAY=false
DISABLE_AUTOMATIC_DECLINE_ONLY_INVALID_VALUE=true
DISABLE_AUTO_DECLINE_INVALID_VALUE=true

INVALID_VALUE_EXCEPTION_SKUS=[";5;u", ";11;australium"]
INVALID_VALUE_EXCEPTION_VALUE_IN_REF=0
Expand Down

0 comments on commit 1a4da92

Please sign in to comment.