Worker Service

Service Info
Service TypeRender Web Service
Start Commandnpm run worker
Entry Pointsrc/worker/index.ts
RuntimeNode.js (tsx)
Required Environment Variables
NEXT_PUBLIC_SUPABASE_URLSupabase project URL
SUPABASE_SERVICE_ROLE_KEYService role key (bypasses RLS)
ENCRYPTION_KEY32-byte hex key for AES-256-GCM
DEEPSEEK_API_KEYDeepSeek API key for AI signal parser
What the Worker Does
  1. Connects to Discord Gateway via WebSocket using your user token
  2. Listens for messages in configured channels
  3. Routes each message through the signal parser (regex / AI)
  4. If the signal matches and auto-execute is enabled, places the trade on Bitget
  5. Records every signal and trade event in the database
  6. Takes a daily balance snapshot at midnight UTC