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.
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.Crawl
YouTube
HOW TO "INSTALL" FFMPEG ON WINDOWS
Ever wanted to know how a core developer of DISCORD.JS uses his own library?
I don't really care what you think, but if you want to leave feedback do so in the comments below.
If there's anything wrong with anything I said and you actually picked up on it, correct me in the comments below and I may or may not respond with an angry comment.
Pa...
2 Replies
- What's your exact discord.js
npm list discord.js
and node node -v
version?
- Not a discord.js issue? Check out #other-js-ts.
- Consider reading #how-to-get-help to improve your question!
- Explain what exactly your issue is.
- Post the full error stack trace, not just the top part!
- Show your code!
- Issue solved? Press the button!
- ✅
Marked as resolved by OPCode:
Thank you! That fixed it.
Didn't realize the file path worked that way.