@@ -3,6 +3,11 @@ const { DisTube } = require('distube');
33const { SoundCloudPlugin } = require ( '@distube/soundcloud' ) ;
44const { SpotifyPlugin } = require ( '@distube/spotify' ) ;
55const { DeezerPlugin } = require ( '@distube/deezer' ) ;
6+ const { YouTubePlugin } = require ( '@distube/youtube' ) ;
7+ const { DirectLinkPlugin } = require ( '@distube/direct-link' ) ;
8+ const { YtDlpPlugin } = require ( '@distube/yt-dlp' ) ;
9+ const { AppleMusicPlugin } = require ( 'distube-apple-music' ) ;
10+ const { TidalPlugin } = require ( 'distube-tidal' ) ;
611
712class MainClient extends Client {
813 constructor ( ) {
@@ -30,11 +35,15 @@ class MainClient extends Client {
3035 const client = this ;
3136
3237 this . distube = new DisTube ( client , {
33- leaveOnEmpty : false , // Don't set this to "true" for 247 Commands working!
34- emptyCooldown : 60 ,
35- leaveOnFinish : false , // Don't set this to "true" for 247 Commands working!
36- leaveOnStop : true ,
38+ savePreviousSongs : true ,
39+ emitAddListWhenCreatingQueue : true ,
40+ emitAddSongWhenCreatingQueue : true ,
3741 plugins : [
42+ new TidalPlugin ( ) ,
43+ new AppleMusicPlugin ( ) ,
44+ new YtDlpPlugin ( { update : false } ) ,
45+ new DirectLinkPlugin ( ) ,
46+ new YouTubePlugin ( ) ,
3847 new SoundCloudPlugin ( ) ,
3948 new DeezerPlugin ( ) ,
4049 checkSpotify ( client )
@@ -64,7 +73,6 @@ function checkSpotify(client) {
6473
6574function spotifyOn ( client ) {
6675 return new SpotifyPlugin ( {
67- emitEventsAfterFetching : true ,
6876 api : {
6977 clientId : client . config . SPOTIFY_ID ,
7078 clientSecret : client . config . SPOTIFY_SECRET
@@ -73,7 +81,5 @@ function spotifyOn(client) {
7381}
7482
7583function spotifyOff ( ) {
76- return new SpotifyPlugin ( {
77- emitEventsAfterFetching : true ,
78- } )
84+ return new SpotifyPlugin ( { } )
7985}
0 commit comments