diff --git a/README.md b/README.md index 990795cd6..b9432835c 100644 --- a/README.md +++ b/README.md @@ -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). diff --git a/src/classes/MyHandler.ts b/src/classes/MyHandler.ts index 83c2625b7..97fce415a 100644 --- a/src/classes/MyHandler.ts +++ b/src/classes/MyHandler.ts @@ -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') || diff --git a/template.ecosystem.json b/template.ecosystem.json index b22177e69..079c1a393 100644 --- a/template.ecosystem.json +++ b/template.ecosystem.json @@ -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, diff --git a/template.env b/template.env index 2ff484f6b..a814db652 100644 --- a/template.env +++ b/template.env @@ -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