Skip to content

Commit 60c19a5

Browse files
committed
FIXED!!
1 parent 4cbceaa commit 60c19a5

File tree

4 files changed

+43
-26
lines changed

4 files changed

+43
-26
lines changed

.env.example

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ OWNER_ID=REPLACE_HERE
44
EMBED_COLOR=#000001
55
LEAVE_EMPTY=120000
66

7-
# Spotify (playlist support 100+ tracks)
7+
# Spotify (API OPTIONAL)
88
SPOTIFY_TRACKS=false
99
SPOTIFY_ID=DONT_USE_ME_WHEN_YOUR_NOT_SET_ME_TO_TRUE
1010
SPOTIFY_SECRET=DONT_USE_ME_WHEN_YOUR_NOT_SET_ME_TO_TRUE

README.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,11 @@
2424
- [x] Youtube
2525
- [x] SoundCloud
2626
- [x] Spotify
27+
- [x] Deezer
28+
- [x] Apple Music
29+
- [x] Tidal
30+
- [x] Direct Link .mp3 file
31+
- [x] And More 700+ Site Support
2732

2833
## 🚨 Have a Problem
2934

@@ -34,6 +39,8 @@
3439

3540
Node.js **[Download](https://nodejs.org/dist/v17.0.1/node-v17.0.1-x64.msi)**
3641

42+
FFmpeg **[Download!!](https://github.com/BtbN/FFmpeg-Builds/releases/download/latest/ffmpeg-master-latest-win64-gpl.zip)**
43+
3744
Discord Bot Token **[Guide](https://discordjs.guide/preparations/setting-up-a-bot-application.html#creating-your-bot)**
3845

3946
## 💌 Installation
@@ -43,7 +50,7 @@ git clone https://github.com/Adivise/DisSpaceX
4350
cd DisSpaceX
4451
npm install
4552
```
46-
After installation finishes you can use `node .` to start the bot. or `Run Start.bat`
53+
After installation finishes please drag **ffmpeg.exe** file into DisSpaceX folder and you can use `node .` to start the bot. or `Run Start.bat`
4754

4855
## 📚 Configuration
4956

@@ -118,3 +125,5 @@ EMBED_COLOR=#000001
118125
- Invite (/utilities invite)
119126
- Restart (/utilities restart)
120127
- Setup (/utilities setup)
128+
- Top Chart (/topchart)
129+
- Usable Stats (/usestats)

disspace.js

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@ const { DisTube } = require('distube');
33
const { SoundCloudPlugin } = require('@distube/soundcloud');
44
const { SpotifyPlugin } = require('@distube/spotify');
55
const { 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

712
class 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

6574
function 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

7583
function spotifyOff() {
76-
return new SpotifyPlugin({
77-
emitEventsAfterFetching: true,
78-
})
84+
return new SpotifyPlugin({})
7985
}

package.json

Lines changed: 18 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "disspacex",
3-
"version": "5.7.0",
3+
"version": "6.0.0",
44
"description": "✈ Join Discord: https://discord.gg/SNG3dh3MbR",
55
"main": "index.js",
66
"scripts": {
@@ -9,28 +9,30 @@
99
"author": "Adivise",
1010
"license": "MIT",
1111
"dependencies": {
12-
"@discordjs/voice": "^0.16.1",
13-
"@distube/deezer": "^1.0.0",
14-
"@distube/soundcloud": "^1.3.3",
15-
"@distube/spotify": "^1.5.2",
12+
"@distube/deezer": "^2.0.1",
13+
"@distube/direct-link": "^1.0.1",
14+
"@distube/soundcloud": "^2.0.4",
15+
"@distube/spotify": "^2.0.2",
16+
"@distube/youtube": "^1.0.4",
17+
"@distube/yt-dlp": "^2.0.1",
18+
"@distube/ytsr": "^2.0.4",
1619
"chalk": "^4.1.2",
1720
"chillout": "^5.0.0",
1821
"delay": "^5.0.0",
19-
"discord.js": "^14.14.1",
20-
"distube": "^4.1.1",
21-
"dotenv": "^14.3.2",
22-
"ffmpeg-static": "^4.4.1",
23-
"figlet": "^1.5.2",
24-
"libsodium-wrappers": "^0.7.10",
22+
"discord.js": "^14.16.3",
23+
"distube": "^5.0.4",
24+
"distube-apple-music": "^0.1.0",
25+
"distube-tidal": "^0.1.0",
26+
"dotenv": "^16.4.5",
27+
"ffmpeg-static": "^5.2.0",
28+
"figlet": "^1.8.0",
29+
"libsodium-wrappers": "^0.7.15",
2530
"lyrics-finder": "^21.7.0",
2631
"opusscript": "^0.0.8",
2732
"path": "^0.12.7",
2833
"plsargs": "^0.1.6",
29-
"recursive-readdir": "^2.2.2",
34+
"recursive-readdir": "^2.2.3",
3035
"st.db": "^5.1.4",
31-
"stuffs": "^0.1.17"
32-
},
33-
"devDependencies": {
34-
"node": "^17.0.1"
36+
"stuffs": "^0.1.42"
3537
}
3638
}

0 commit comments

Comments
 (0)