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

🔨 include old group name in highValue disabled item notification #544

Merged
merged 1 commit into from
Apr 3, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/classes/MyHandler/offer/accepted/updateListings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,8 @@ export default function updateListings(
}
} else if (isAutoDisableHighValueItems) {
// If item received is high value, temporarily disable that item so it will not be sellable.
const oldGroup = inPrice.group;

const entry: EntryData = {
sku: sku, // required
enabled: false, // required
Expand Down Expand Up @@ -302,7 +304,7 @@ export default function updateListings(
let msg =
`I have temporarily disabled ${name} (${sku}) because it contains some high value spells/parts.` +
`\nYou can manually price it with "!update sku=${sku}&enabled=true&<buy and sell price>"` +
` or just re-enable it with "!update sku=${sku}&enabled=true".` +
` or just re-enable it with "!update sku=${sku}&enabled=true&group=${oldGroup}".` +
'\n\nItem information:\n\n- ';

const theirCount = highValue.theirItems.length;
Expand Down