Skip to content

Commit

Permalink
refactor: πŸ’‘ always show group on item update
Browse files Browse the repository at this point in the history
This change makes it so that whenever an item is updated, it will always
show which group the item is in (even if that group is all)

βœ… Closes: TF2Autobot#324
  • Loading branch information
Bonfire committed Feb 10, 2021
1 parent 4ec5be8 commit 172e0cf
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/classes/Commands/functions/pricelistManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -850,12 +850,8 @@ export async function updateCommand(steamID: SteamID, message: string, bot: Bot)
: `${newEntry.promoted === 1 ? 'βœ…' : '❌'}`
}`
: '') +
`${
newEntry.group !== 'all'
? `\nπŸ”° Group: ${
oldEntry.group !== newEntry.group ? `${oldEntry.group} β†’ ${newEntry.group}` : newEntry.group
}`
: ''
`\nπŸ”° Group: ${
oldEntry.group !== newEntry.group ? `${oldEntry.group} β†’ ${newEntry.group}` : newEntry.group
}` +
`${newEntry.note.buy !== null ? `\nπŸ“₯ Custom buying note: ${newEntry.note.buy}` : ''}` +
`${newEntry.note.sell !== null ? `\nπŸ“€ Custom selling note: ${newEntry.note.sell}` : ''}`
Expand Down

0 comments on commit 172e0cf

Please sign in to comment.