#!/bin/zsh
if pgrep -x OpenBot >/dev/null; then
  echo 'Openbot is already running. Sign out inside Openbot, quit it completely, then run this launcher again.'
  read 'reply?Press Enter to close.'
  exit 1
fi
export OPENBOT_AUTH_API_URL=https://openbot-api.teddyjubu.dev
export OPENBOT_REMOTE_SIGNAL_URL=wss://openbot-signal.teddyjubu.dev/v1/signal
exec /Applications/OpenBot.app/Contents/MacOS/OpenBot
