im getting the classic AudioPlayerError: aborted.
Error:
the code is just creating a resource out of stream from ytdl and player playing that resource.
12 Replies
• What's your exact discord.js
npm list discord.js
and node node -v
version?
• Post the full error stack trace, not just the top part!
• Show your code!
• Explain what exactly your issue is.
• Not a discord.js issue? Check out #useful-servers.we do not support tos violations
pardon me for asking but what is the TOS violation regarding this development?
streaming from youtube
i see. so what is the move favorable way of doing so?
as obviously im new to discordjs/voice and want to stand in regulations.
not streaming from youtube?
not sure what you're asking
so basically all music bots atm that work with youtube are breaking tos?
yes
Ah, I see. so in a general question, can a bot play a non-AudioResource file? such as plain mp3?
AudioResource
is just a djs/voice structure
it can be created from an mp3 file
createAudioResource
accepts a filepath
for mp3 in particular, you'll need the extra dependencies mentioned on the guidegot it, thanks!