diff --git a/.env.example b/.env.example index 11c70ab..768d93b 100644 --- a/.env.example +++ b/.env.example @@ -4,7 +4,7 @@ OWNER_ID=REPLACE_HERE EMBED_COLOR=#000001 LEAVE_EMPTY=120000 -# Spotify (playlist support 100+ tracks) +# Spotify (API OPTIONAL) SPOTIFY_TRACKS=false SPOTIFY_ID=DONT_USE_ME_WHEN_YOUR_NOT_SET_ME_TO_TRUE SPOTIFY_SECRET=DONT_USE_ME_WHEN_YOUR_NOT_SET_ME_TO_TRUE \ No newline at end of file diff --git a/README.md b/README.md index ff26353..4e786e2 100644 --- a/README.md +++ b/README.md @@ -24,6 +24,11 @@ - [x] Youtube - [x] SoundCloud - [x] Spotify +- [x] Deezer +- [x] Apple Music +- [x] Tidal +- [x] Direct Link .mp3 file +- [x] And More 700+ Site Support ## 🚨 Have a Problem @@ -34,6 +39,8 @@ Node.js **[Download](https://nodejs.org/dist/v17.0.1/node-v17.0.1-x64.msi)** +FFmpeg **[Download!!](https://github.com/BtbN/FFmpeg-Builds/releases/download/latest/ffmpeg-master-latest-win64-gpl.zip)** + Discord Bot Token **[Guide](https://discordjs.guide/preparations/setting-up-a-bot-application.html#creating-your-bot)** ## 💌 Installation @@ -43,7 +50,7 @@ git clone https://github.com/Adivise/DisSpaceX cd DisSpaceX npm install ``` -After installation finishes you can use `node .` to start the bot. or `Run Start.bat` +After installation finishes please drag **ffmpeg.exe** file into DisSpaceX folder and you can use `node .` to start the bot. or `Run Start.bat` ## 📚 Configuration @@ -118,3 +125,5 @@ EMBED_COLOR=#000001 - Invite (/utilities invite) - Restart (/utilities restart) - Setup (/utilities setup) +- Top Chart (/topchart) +- Usable Stats (/usestats) diff --git a/disspace.js b/disspace.js index 469d07f..7710028 100644 --- a/disspace.js +++ b/disspace.js @@ -3,6 +3,11 @@ const { DisTube } = require('distube'); const { SoundCloudPlugin } = require('@distube/soundcloud'); const { SpotifyPlugin } = require('@distube/spotify'); const { DeezerPlugin } = require('@distube/deezer'); +const { YouTubePlugin } = require('@distube/youtube'); +const { DirectLinkPlugin } = require('@distube/direct-link'); +const { YtDlpPlugin } = require('@distube/yt-dlp'); +const { AppleMusicPlugin } = require('distube-apple-music'); +const { TidalPlugin } = require('distube-tidal'); class MainClient extends Client { constructor() { @@ -30,11 +35,15 @@ class MainClient extends Client { const client = this; this.distube = new DisTube(client, { - leaveOnEmpty: false, // Don't set this to "true" for 247 Commands working! - emptyCooldown: 60, - leaveOnFinish: false, // Don't set this to "true" for 247 Commands working! - leaveOnStop: true, + savePreviousSongs: true, + emitAddListWhenCreatingQueue: true, + emitAddSongWhenCreatingQueue: true, plugins: [ + new TidalPlugin(), + new AppleMusicPlugin(), + new YtDlpPlugin({ update: false }), + new DirectLinkPlugin(), + new YouTubePlugin(), new SoundCloudPlugin(), new DeezerPlugin(), checkSpotify(client) @@ -64,7 +73,6 @@ function checkSpotify(client) { function spotifyOn(client) { return new SpotifyPlugin({ - emitEventsAfterFetching: true, api: { clientId: client.config.SPOTIFY_ID, clientSecret: client.config.SPOTIFY_SECRET @@ -73,7 +81,5 @@ function spotifyOn(client) { } function spotifyOff() { - return new SpotifyPlugin({ - emitEventsAfterFetching: true, - }) + return new SpotifyPlugin({}) } \ No newline at end of file diff --git a/package.json b/package.json index 2abf6af..d1dbaa5 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "disspacex", - "version": "5.7.0", + "version": "6.0.0", "description": "✈ Join Discord: https://discord.gg/SNG3dh3MbR", "main": "index.js", "scripts": { @@ -9,28 +9,30 @@ "author": "Adivise", "license": "MIT", "dependencies": { - "@discordjs/voice": "^0.16.1", - "@distube/deezer": "^1.0.0", - "@distube/soundcloud": "^1.3.3", - "@distube/spotify": "^1.5.2", + "@distube/deezer": "^2.0.1", + "@distube/direct-link": "^1.0.1", + "@distube/soundcloud": "^2.0.4", + "@distube/spotify": "^2.0.2", + "@distube/youtube": "^1.0.4", + "@distube/yt-dlp": "^2.0.1", + "@distube/ytsr": "^2.0.4", "chalk": "^4.1.2", "chillout": "^5.0.0", "delay": "^5.0.0", - "discord.js": "^14.14.1", - "distube": "^4.1.1", - "dotenv": "^14.3.2", - "ffmpeg-static": "^4.4.1", - "figlet": "^1.5.2", - "libsodium-wrappers": "^0.7.10", + "discord.js": "^14.16.3", + "distube": "^5.0.4", + "distube-apple-music": "^0.1.0", + "distube-tidal": "^0.1.0", + "dotenv": "^16.4.5", + "ffmpeg-static": "^5.2.0", + "figlet": "^1.8.0", + "libsodium-wrappers": "^0.7.15", "lyrics-finder": "^21.7.0", "opusscript": "^0.0.8", "path": "^0.12.7", "plsargs": "^0.1.6", - "recursive-readdir": "^2.2.2", + "recursive-readdir": "^2.2.3", "st.db": "^5.1.4", - "stuffs": "^0.1.17" - }, - "devDependencies": { - "node": "^17.0.1" + "stuffs": "^0.1.42" } }