A user account is the only kind Discord lets Go Live, so add a userbot run mode: when DISCORD_BOT_TOKEN is absent but DISCORD_SELFBOT_TOKEN is set, the app runs as a userbot instead of the normal slash-command bot. Stage 1 (conversation): log in with discord.js-selfbot-v13, auto-join DISCORD_VOICE_CHANNEL_ID on startup (or "!자비스 join" when unset), listen via the selfbot VoiceReceiver (pcm), transcribe+reply through the bridge, and speak the reply back with playAudio. Shared PCM/WAV helpers extracted to audio.ts. run-bot.sh now starts in either userbot or normal mode. Go-Live broadcast + broadcast-coupled routing land in stage 2 on the same voice connection. ToS note: selfbots violate Discord ToS; burner account only. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
1.7 KiB
Executable File
1.7 KiB
Executable File