From 5327f8ec7cca366010f95c72b11260262517f1cb Mon Sep 17 00:00:00 2001 From: EJClaw Date: Sat, 15 Aug 2026 21:01:37 +0900 Subject: [PATCH] feat(dave): join with mic on (self_mute=false) so bot can speak and hear Previously the selfbot joined self_mute=true (listen-only). Un-mute so both directions are enabled at the Discord voice-state level for live testing. --- dave/join.mjs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dave/join.mjs b/dave/join.mjs index 00ff134..c0d10a7 100644 --- a/dave/join.mjs +++ b/dave/join.mjs @@ -86,8 +86,8 @@ mainWs.on('message', (raw) => { } else if (p.op === 0) { if (p.t === 'READY') { log(`main gw: READY as ${p.d.user?.username} (${p.d.user?.id})`); - mainWs.send(JSON.stringify({ op: 4, d: { guild_id: GUILD_ID, channel_id: CHANNEL_ID, self_mute: true, self_deaf: false } })); - log('main gw: sent Voice State Update (join, deaf=false so we can hear)'); + mainWs.send(JSON.stringify({ op: 4, d: { guild_id: GUILD_ID, channel_id: CHANNEL_ID, self_mute: false, self_deaf: false } })); + log('main gw: sent Voice State Update (join, mute=false + deaf=false so we can both speak and hear)'); } else if (p.t === 'VOICE_STATE_UPDATE' && p.d.user_id === SELF_ID && p.d.session_id) { voiceState.session_id = p.d.session_id; log('VOICE_STATE_UPDATE session_id acquired'); maybeConnectVoice(); } else if (p.t === 'VOICE_SERVER_UPDATE') {