service-teams-browser-bot/src/config.ts
ValueOn AG 043349f529 Initial commit: Browser-based Teams Meeting Bot
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-13 22:44:57 +01:00

36 lines
1 KiB
TypeScript

import dotenv from 'dotenv';
import path from 'path';
dotenv.config();
export const config = {
// Service
port: parseInt(process.env.PORT || '4100', 10),
nodeEnv: process.env.NODE_ENV || 'development',
// Gateway
gatewayWsUrl: process.env.GATEWAY_WS_URL || 'wss://gateway-int.poweron-center.net/api/teamsbot/ws',
// Bot
botName: process.env.BOT_NAME || 'PowerOn AI',
botHeadless: process.env.BOT_HEADLESS !== 'false',
// Logging
logLevel: process.env.LOG_LEVEL || 'info',
logDir: process.env.LOG_DIR || './output/logs',
// Screenshots
screenshotDir: process.env.SCREENSHOT_DIR || './output/screenshots',
screenshotOnError: process.env.SCREENSHOT_ON_ERROR === 'true',
// Timeouts (in milliseconds)
timeouts: {
lobbyWait: 120000, // 2 minutes waiting in lobby
joinTimeout: 30000, // 30 seconds to join
captionsEnable: 10000, // 10 seconds to enable captions
pageLoad: 30000, // 30 seconds for page load
},
// Teams URLs
teamsBaseUrl: 'https://teams.microsoft.com',
};