Member milestones no longer post to the team-build topic (it keeps discussion + daily snapshots only)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user