The selfbot library's native voice connection cannot complete Discord's current DAVE/v8 voice handshake and times out (15s). Root cause: DAVE E2EE (mandated ~March 2026). The bundled @discordjs/voice 0.18.0 also lacked DAVE. Fix: upgrade @discordjs/voice to 0.19.2 + add @snazzah/davey (the DAVE protocol lib) and drive the selfbot client through @discordjs/voice's joinVoiceChannel / receiver via the client's voiceAdapterCreator — i.e. reuse the normal-bot VoiceSession with a user-account channel. Verified: the userbot now reaches a READY voice connection (host test) and joins the channel in-container with no timeout. This also fixes the normal-bot voice path under DAVE. Drops the hand-rolled selfbot-native receiver (audio.ts). Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
40 lines
1.0 KiB
JSON
40 lines
1.0 KiB
JSON
{
|
|
"name": "javis-bot",
|
|
"version": "0.1.0",
|
|
"private": true,
|
|
"type": "module",
|
|
"description": "Discord-native voice/video front-end for the Jarvis brain (bun + discord.js)",
|
|
"scripts": {
|
|
"start": "bun run src/index.ts",
|
|
"register": "bun run src/register-commands.ts",
|
|
"token": "bun run src/get-token.ts",
|
|
"typecheck": "tsc --noEmit"
|
|
},
|
|
"dependencies": {
|
|
"@discordjs/voice": "^0.19.2",
|
|
"@snazzah/davey": "^0.1.11",
|
|
"debug": "^4.3.7",
|
|
"discord.js": "^14.16.3",
|
|
"dotenv": "^16.4.5",
|
|
"libsodium-wrappers": "^0.7.15",
|
|
"opusscript": "^0.1.1",
|
|
"playwright": "^1.60.0",
|
|
"prism-media": "^1.3.5",
|
|
"qrcode": "^1.5.4"
|
|
},
|
|
"optionalDependencies": {
|
|
"@dank074/discord-video-stream": "^6.0.0",
|
|
"discord.js-selfbot-v13": "^3.7.1"
|
|
},
|
|
"devDependencies": {
|
|
"@types/bun": "^1.3.14",
|
|
"@types/node": "^22.7.0",
|
|
"@types/qrcode": "^1.5.6",
|
|
"typescript": "^5.6.3"
|
|
},
|
|
"trustedDependencies": [
|
|
"@lng2004/node-datachannel",
|
|
"node-av"
|
|
]
|
|
}
|