From 451bd50eb3fad2e39ccd22f38bcfebf30eabb5ec Mon Sep 17 00:00:00 2001 From: martbost Date: Thu, 1 Oct 2026 20:43:21 -0500 Subject: [PATCH] Member milestones no longer post to the team-build topic (it keeps discussion + daily snapshots only) Co-Authored-By: Claude Opus 5.5 --- server.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server.js b/server.js index 19ba5da..0a0b671 100644 --- a/server.js +++ b/server.js @@ -174,7 +174,7 @@ async function sendTelegramPhotoTo(chatId, filePath, caption, topicId) { return r.ok; } catch (e) { console.warn('telegram sendPhoto', e.message); return false; } } -// Member milestones (Marty, 2026-09-21): a celebration in the proof channel, the team feed and the shared +// Member milestones (Marty, 2026-09-21; team feed dropped 2026-10-01): a celebration in the proof channel and the shared // payments topic when the contract passes 1,000 members (then 2,500 / 5,000 / 10,000). Once per milestone. const MILESTONES_FILE = path.join(DATA_DIR, 'milestones.json'); function milestoneCaption(n, total) { @@ -198,7 +198,7 @@ async function milestoneCheck() { const havePhoto = fs.existsSync(img); const post = async (chatId, topicId) => { if (!chatId) return; if (havePhoto) { if (await sendTelegramPhotoTo(chatId, img, caption, topicId)) return; } sendTelegramTo(chatId, caption, topicId, null, 'HTML', 'milestone:' + n + ':' + String(chatId) + ':' + String(topicId || '')); }; await post(c.telegramProofChatId, c.telegramProofTopicId || null); // the public payment-proof channel - await post(c.telegramChatId, c.telegramTopicId || null); // the team feed + // NOT the team-build topic: Marty (2026-10-01) keeps it for team-project discussion plus the daily snapshots only if (c.telegramEchoChatId || c.telegramEchoTopicId) await post(c.telegramEchoChatId || c.telegramChatId, c.telegramEchoTopicId || null); // the shared payments topic st.posted[n] = { at: Date.now(), total }; writeJson(MILESTONES_FILE, st); console.log('member milestone posted:', n, 'total', total, havePhoto ? 'with photo' : 'text only');