From 2c13cc345bd2b8982f28d17ba64de6c6dbf31130 Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Wed, 14 Jan 2026 15:40:26 +0200 Subject: [PATCH] logging --- index.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/index.js b/index.js index c55a756..297d281 100644 --- a/index.js +++ b/index.js @@ -68,11 +68,15 @@ const loop = async () => { ); const { state } = await response.json(); const isLive = state.id === 1; // published + constole.info('Live: ', isLive, currentlyLive) const stateChange = isLive !== globalState.currentlyLive; + constole.info('State change', stateChange) globalState.currentlyLive = isLive; + constole.info('State: ', state) if (stateChange) { if (isLive) { + constole.info('Went live!') await post({ spoiler_text: 'Stream announcment', status: [ @@ -88,6 +92,7 @@ const loop = async () => { external_link: `https://tube.ebin.club/w/${videoId}`, }); } else { + constole.info('Went offline...') await scrobble({ title: 'Stream over', });