Leizest
Leizest
DIAdiscord.js - Imagine an app
Created by Leizest on 11/10/2023 in #djs-voice
Music bot autopause
Info: I am running this locally using node index.js. I have given the bot admin permission. I have added the GuildVoiceStates to the GatewayIntentBits. I have checked all 3 of the Privileged Gateway Intents found in the discord portal.
Dependencies: {
"@discordjs/opus": "^0.9.0",
"@discordjs/voice": "^0.16.0",
"discord-player": "^6.6.5",
"discord.js": "^14.13.0",
"ffmpeg-static": "^5.2.0",
}
Dependencies: {
"@discordjs/opus": "^0.9.0",
"@discordjs/voice": "^0.16.0",
"discord-player": "^6.6.5",
"discord.js": "^14.13.0",
"ffmpeg-static": "^5.2.0",
}
node -v - v18.12.0 npm -v - 8.19.2 Problem I am trying to get this bot to play music from a local file in the same folder as the /play command. The bot joins the channel, then the state changes to playing => autopaused => playing => idle. I have been trying for weeks, I looked through the discord group and added the GuildVoiceStates intent and even tried downloading and setting up ffmpeg manually (after I have already downlaoded ffmpeg-static using npm) using this youtube video: https://www.youtube.com/watch?v=SW-iKrT_nJs . The ffmepg command did not work, so I am not certain if this is why I am struggling, or if it is unrelated.
5 replies