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:
@@ -1776,10 +1776,10 @@ chain.startIndexer(evt=>{
|
|||||||
if(upTools) text+=`\n🧰 #${evt.fromId} reached ${evt.levelName} and unlocked ${upTools}.`;
|
if(upTools) text+=`\n🧰 #${evt.fromId} reached ${evt.levelName} and unlocked ${upTools}.`;
|
||||||
}
|
}
|
||||||
if(evt.tx)text+=`\nhttps://polygonscan.com/tx/${evt.tx}`;
|
if(evt.tx)text+=`\nhttps://polygonscan.com/tx/${evt.tx}`;
|
||||||
// team-build topic: telegramTeamEvents 'all' (default) | 'no-payouts' (payout lines
|
// team-build topic: telegramTeamEvents 'all' (default) | 'no-payouts' (payout lines live in
|
||||||
// live in the shared payments topic instead; registrations/upgrades still post here,
|
// the shared payments topic instead) | 'none' (Marty 2026-09-12: nothing but the daily
|
||||||
// and the daily snapshot cron posts to this topic on its own).
|
// snapshot, which the cron posts to this topic on its own).
|
||||||
if(!(evt.type==='payout' && String(c.telegramTeamEvents||'all')==='no-payouts')) sendTelegram(text);
|
{ 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
|
// recruiting-framed copy of the SAME event to the new-members topic
|
||||||
// (social proof, CTA -> home). Fires only when a recruit topic is set.
|
// (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'}]]}); } }
|
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'}]]}); } }
|
||||||
|
|||||||
Reference in New Issue
Block a user