barthofu / tscord

🤖 A fully-featured discord bot template written in Typescript, intended to provide a framework that's easy to use, extend and modify
https://tscord.discbot.app
MIT License
263 stars 21 forks source link

[Feature] Fixing the discordx music bug by implementing a lavalink player instead of the current ytdl library #99

Closed ElMehdiBouamama closed 1 year ago

ElMehdiBouamama commented 1 year ago

Feature

While using the current discordx/music framework I ran into a problem regarding the music player. If you give the player a track long enough (above 30min), the player will stop playing the music and abort unexpectedly. The discordx team is currently using ytdl to download the music from youtube and play it.

I got in contact with the discordx team and they told me there is no known quick fixes for the current encountered bug, the only remaining solution is to actually use a lavalink player with a lava server to make it function properly.

Looking around the internet i found it hard to find good lava players with native integration with the discordx framework (that is based on devs best practices).

So I recommend making a wrapper around the lavalink player and creating a plugin for that to be shared with other people who wanna use the template. That would allow everyone to have access to a functioning music bot alongside the template which is a big plus.

barthofu commented 1 year ago

Mentionned in https://github.com/barthofu/tscord-plugins/issues/4