From a7b58352a6af68efc25cbcc79e7e3284c163cb91 Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Wed, 14 Jan 2026 16:02:22 +0200 Subject: [PATCH] cleanup --- index.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/index.js b/index.js index 73ff71a..3ae21be 100644 --- a/index.js +++ b/index.js @@ -9,7 +9,6 @@ const videoId = process.env.VIDEO_ID; const botBearer = fs.readFileSync(botBearerFile, 'utf-8'); const userBearer = fs.readFileSync(userBearerFile, 'utf-8'); -console.log('"' + botBearer + '"') const globalState = { exit: false, currentlyLive: false, @@ -82,23 +81,22 @@ const loop = async () => { if (stateChange) { if (isLive) { console.info('Went live!'); - console.info(process.env); const postResult = await post({ spoiler_text: 'Stream announcment', status: [ - 'hj just went live on peertube', + '@hj just went live on peertube', '', `https://tube.ebin.club/w/${videoId}`, ].join('\n'), visibility: 'public', }); - console.info(postResult); + console.info('post: ' + postResult.status); const scrobbleResult = await scrobble({ title: 'Streaming on PeerTube', external_link: `https://tube.ebin.club/w/${videoId}`, }); - console.info(scrobbleResult); + console.info('scrobble: ' + scrobbleResult.status); } else { console.info('Went offline...'); await scrobble({