Stop the private duplicate of every payout line: the card already goes to the shared payments topic (Marty, 2026-11-02)
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
@@ -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} <b>Drip Runner</b> · paid ' + who + ' <b>' + fmt(p.pol) + ' POL</b> · <a href="' + explorer() + '/tx/' + p.tx + '">verify</a>'); }
|
||||
// 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('❌ <b>Drip Runner</b> · payout to ' + who + ' failed: ' + p.error);
|
||||
if (kind === 'low') return telegram('⚠️ <b>Drip Runner wallet is low</b>: ' + fmt(p.balance) + ' POL in ' + p.address + ' (needs ' + fmt(p.threshold) + ').');
|
||||
if (kind === 'gpstuck') return telegram('⚠️ <b>Drip Runner</b> 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 || '?'));
|
||||
|
||||
Reference in New Issue
Block a user