Reputation: 31
I made a discord bot with discord.js
and hosted it on Github Actions
When playing an audio track on youtube with:
Queue.connection.play(ytdl(song.SongURL))
I hear it sounds like you are hearing a broken radio with a weird noise. Could anyone help?.
Upvotes: 3
Views: 132
Reputation: 2371
I'd imagine this is a problem with Github Actions.
I'm not entirely familiar with the platform, but it could be that the action is exiting before it can fully play the song and leave the voice channel.
Perhaps what's happening is the action connects the bot, attempts to play the file, and then any event listener you have for the "end" of the song to leave the channel or stop playing is never executed, nor is the async call to stream the song?
That's just a guess, but try hosting it locally first and running it that way.
Upvotes: 1