Team-build topic: telegramTeamEvents=none leaves only the daily snapshot

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
martbost
2026-09-12 07:50:20 -05:00
parent 3bed091ba2
commit 4b982dffe0
+4 -4
View File
@@ -1776,10 +1776,10 @@ chain.startIndexer(evt=>{
if(upTools) text+=`\n🧰 #${evt.fromId} reached ${evt.levelName} and unlocked ${upTools}.`;
}
if(evt.tx)text+=`\nhttps://polygonscan.com/tx/${evt.tx}`;
// team-build topic: telegramTeamEvents 'all' (default) | 'no-payouts' (payout lines
// live in the shared payments topic instead; registrations/upgrades still post here,
// and the daily snapshot cron posts to this topic on its own).
if(!(evt.type==='payout' && String(c.telegramTeamEvents||'all')==='no-payouts')) sendTelegram(text);
// team-build topic: telegramTeamEvents 'all' (default) | 'no-payouts' (payout lines live in
// the shared payments topic instead) | 'none' (Marty 2026-09-12: nothing but the daily
// snapshot, which the cron posts to this topic on its own).
{ const tm=String(c.telegramTeamEvents||'all'); if(tm!=='none' && !(evt.type==='payout' && tm==='no-payouts')) sendTelegram(text); }
// recruiting-framed copy of the SAME event to the new-members topic
// (social proof, CTA -> home). Fires only when a recruit topic is set.
if(c.telegramRecruitTopicId){ const rm=recruitMsg(evt); if(rm){ const cta='https://'+String(c.recruitCtaUrl||'rmcircle.team').replace(/^https?:\/\//,''); sendTelegram(rm, c.telegramRecruitTopicId, {inline_keyboard:[[{text:'🚀 Get Started — rmcircle.team',url:cta+(cta.includes('?')?'&':'?')+'utm_source=tg'}]]}); } }