import { OBSControlClient } from '../src/obs-control';

const client = new OBSControlClient();

console.log(JSON.stringify({
  url: process.env.OBS_WS_URL ?? 'ws://127.0.0.1:4455',
  sceneName: process.env.OBS_SCENE_NAME ?? null,
  textInputName: process.env.OBS_TEXT_INPUT_NAME ?? null,
}, null, 2));

if (process.env.OBS_TEST_CONNECT === '1') {
  await client.connect();
  console.log('obs connected');
  await client.disconnect();
}

