Skip to content

Commit

Permalink
add note to owner
Browse files Browse the repository at this point in the history
  • Loading branch information
idinium96 committed Aug 1, 2020
1 parent 23c5d3d commit f21ef28
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/classes/DiscordWebhook.ts
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,13 @@ export = class DiscordWebhook {
},
title: '',
description:
`⚠️ An offer sent by ${partnerNameNoFormat} is waiting for review.\nReason: ${reasons}\n\n__Offer Summary__:\n` +
`⚠️ An offer sent by ${partnerNameNoFormat} is waiting for review.\nReason: ${reasons}` +
(reasons.includes('⬜BACKPACKTF_DOWN')
? '\n\nBackpack.tf down, please manually check if this person is banned before accepting the offer.'
: reasons.includes('⬜STEAM_DOWN')
? '\n\nSteam down, please manually check if this person have escrow.'
: '') +
`\n\n__Offer Summary__:\n` +
tradeSummary.replace('Asked:', '**Asked:**').replace('Offered:', '**Offered:**') +
(value.diff > 0
? `\n📈 ***Profit from overpay:*** ${value.diffRef} ref` +
Expand Down
5 changes: 5 additions & 0 deletions src/classes/MyHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1559,6 +1559,11 @@ export = class MyHandler extends Handler {
this.bot.messageAdmins(
`⚠️ Offer #${offer.id} from ${offer.partner} is waiting for review.` +
`\nReason: ${meta.uniqueReasons.join(', ')}` +
(reasons.includes('⬜BACKPACKTF_DOWN')
? '\nBackpack.tf down, please manually check if this person is banned before accepting the offer.'
: reasons.includes('⬜STEAM_DOWN')
? '\nSteam down, please manually check if this person have escrow.'
: '') +
`\n\nOffer Summary:\n${offer.summarize(this.bot.schema)}${
value.diff > 0
? `\n📈 Profit from overpay: ${value.diffRef} ref` +
Expand Down

0 comments on commit f21ef28

Please sign in to comment.