diff --git a/server.js b/server.js index 069357b..4487345 100644 --- a/server.js +++ b/server.js @@ -97,7 +97,9 @@ function announcePaid(p) { announce('paid', { memberId: p.memberId, username: p. const explorer = () => Number(process.env.DR_CHAIN_ID) === 80002 ? 'https://amoy.polygonscan.com' : 'https://polygonscan.com'; async function notify(kind, p) { const who = p && (p.username ? '@' + p.username : '#' + p.memberId); - if (kind === 'paid') { announcePaid(p); return telegram('\u{1F3AE} Drip Runner · paid ' + who + ' ' + fmt(p.pol) + ' POL · verify'); } + // the payout card already goes to the shared payments topic (announcePaid); the private copy to Marty was a duplicate + // of every public line and stopped 2026-11-02 on his word. Failures and low-wallet alerts stay private below. + if (kind === 'paid') { announcePaid(p); return Promise.resolve(true); } if (kind === 'failed') return telegram('❌ Drip Runner · payout to ' + who + ' failed: ' + p.error); if (kind === 'low') return telegram('⚠️ Drip Runner wallet is low: ' + fmt(p.balance) + ' POL in ' + p.address + ' (needs ' + fmt(p.threshold) + ').'); if (kind === 'gpstuck') return telegram('⚠️ Drip Runner Game Pass grant stuck 48 h: member #' + p.memberId + ' ' + (p.email || '') + ' ref ' + p.ref + ' (' + fmt(p.pol) + ' POL, ' + p.kind + '). InstantAdPay /api/partner/polgrant unreachable: ' + (p.error || '?'));