From 25776a0208db77af7e58aac764234da18382370b Mon Sep 17 00:00:00 2001 From: Leonid Pershin Date: Wed, 9 Sep 2026 02:04:13 +0300 Subject: [PATCH] Say at startup whether video is on The video path leaves no trace in the log when it is switched off, so a missing VIDEO_ENABLED in an existing .env looks exactly like a broken screen share. Startup now states which mode it is in, and at what size. Co-Authored-By: Claude Opus 5 --- src/index.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/index.ts b/src/index.ts index c328b56..ca9e300 100644 --- a/src/index.ts +++ b/src/index.ts @@ -46,6 +46,15 @@ async function main(): Promise { logger.warn({ path: config.YTDLP_COOKIES }, "cookie file from YTDLP_COOKIES does not exist"); } + if (config.VIDEO_ENABLED) { + logger.info( + { size: `${config.VIDEO_WIDTH}x${config.VIDEO_HEIGHT}`, fps: config.VIDEO_FPS }, + "video enabled — YouTube clips will be published as a screen share", + ); + } else { + logger.info("video disabled — set VIDEO_ENABLED=true to publish clips as a screen share"); + } + const manager = new MusicManager(); const bot = await startBot(manager); const app = await startApiServer({ manager, context: bot.context });