51 Replies
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
did you try it?
yeah
it joins but doesnt play anything
i also logged
generateDependencyReport()
@patr.
try using path.join instead of resolve
path.join(__dirname, "pathFromProjectRoot")
so
i mean i don't know if that is the issue, but i've always used path.join and so does the guide, so it's worth a shot
is the file outside your project folder?
like that ?
no like
i have all my cmds in one folder and the audio files in another
okay, so the second parameter of join isnt the relative path of the file that you are running that code from
it's the path from the root of your project (the same place where package.json is located)
so it cant be in any folder ?
path.join(__dirname, "Audio/sub/file.mp3")
and Audio folder is in root dir ?it can be anywhere, just the path has to correct
alright
yeah, looks about right, although i dont know your folder structure so i can't say for sure
it just leaves after 3 secs without playing anything
so it's idle
hmm
yeah ig
eh i haven't worked with voice in a while, lemme check my music bot's code 😄
sure sure take your time
alright, so your code looks fine, so the only thing i can think of is your path to the mp3
i can show u my folder structure
could you maybe show how the code for the audio resource
yeah also folder structure
ah spaces in folder names 🥹
my worst nightmare xd
alright, so try using one / slash instead of \
so /\
??
no
just /
Audio/Darling...
ah
right
les try
still nothing
alright log the audio resource, maybe it tells us something
is it because the file is large
i doubt it
thats the log
well...
i got no clue, sorry try playing it without inlineVolume
alright
honestly, that's my only advice, when i had problems with my music bot the first time i was just throwing shit at the wall and seeing what fixed the problem
there's so many things that could cause problems, and you don't even know which one it is until it magically starts working
i tried updating some dependencies for my music bot a few weeks ago and everything broke, that's why i hate working with voice
man this sucks... nothing is working
but anyway, good luck
thanks man
maybe try just taking the examples out of the guide and slowly working your way up
just a whole lot of experimentation
all of this is from the guide 💀
can you show your package.json?
just interested
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
yeah
its fine
@deimoss
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
still the same
@qubiet
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
i did do that... no logs
i'll do that
for some reason removing spaces fixed it 💀
ty all
ok one more thing
im playing local files
how do i improve the quality of the output
i converted mp3 and flac to opus but its still not that great
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View