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 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5
parent
1eec893d15
commit
25776a0208
@@ -46,6 +46,15 @@ async function main(): Promise<void> {
|
|||||||
logger.warn({ path: config.YTDLP_COOKIES }, "cookie file from YTDLP_COOKIES does not exist");
|
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 manager = new MusicManager();
|
||||||
const bot = await startBot(manager);
|
const bot = await startBot(manager);
|
||||||
const app = await startApiServer({ manager, context: bot.context });
|
const app = await startApiServer({ manager, context: bot.context });
|
||||||
|
|||||||
Reference in New Issue
Block a user