From 82c09f59dadde07c2c561ea40b9878816e8204d4 Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Wed, 14 Jan 2026 16:33:01 +0200 Subject: [PATCH] cleanup --- index.js | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/index.js b/index.js index 0ac56ca..7f49a5d 100644 --- a/index.js +++ b/index.js @@ -113,28 +113,28 @@ const loop = async () => { ); const { state } = await response.json(); const isLive = state.id === 1; // published - console.info('Live: ', isLive, globalState.currentlyLive); + // console.info('Live: ', isLive, globalState.currentlyLive); const stateChange = isLive !== globalState.currentlyLive; - console.info('State change', stateChange); + // console.info('State change', stateChange); globalState.currentlyLive = isLive; - console.info('State: ', state); + // console.info('State: ', state); if (stateChange) { if (isLive) { console.info('Went live!'); - const postResult = await post({ - spoiler_text: 'Stream announcment', - status: [ - '@hj just went live on peertube', - '', - `https://tube.ebin.club/w/${videoId}`, - ].join('\n'), - visibility: 'public', - }); - console.info('post: ' + postResult.status); + // const postResult = await post({ + // spoiler_text: 'Stream announcment', + // status: [ + // '@hj just went live on peertube', + // '', + // `https://tube.ebin.club/w/${videoId}`, + // ].join('\n'), + // visibility: 'public', + // }); + // console.info('post: ' + postResult.status); const scrobbleResult = await scrobble({ - artist: 'Peertube', + // artist: 'Peertube', title: 'Streaming on PeerTube', external_link: `https://tube.ebin.club/w/${videoId}`, });