#!/bin/bash
# Start bot with proxy support
# This script ensures all Node.js traffic goes through the proxy

export HTTP_PROXY="http://127.0.0.1:7890"
export HTTPS_PROXY="http://127.0.0.1:7890"
export http_proxy="http://127.0.0.1:7890"
export https_proxy="http://127.0.0.1:7890"
export NODE_TLS_REJECT_UNAUTHORIZED="0"

echo "[Proxy] Starting with proxy: http://127.0.0.1:7890"

# Start the bot
node /Users/cyrus/Documents/project/agent-window-main/src/bot.js
