Skip to content

Commit

Permalink
FIXED!!
Browse files Browse the repository at this point in the history
  • Loading branch information
Adivise committed Nov 2, 2024
1 parent 4cbceaa commit 60c19a5
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 26 deletions.
2 changes: 1 addition & 1 deletion .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -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
11 changes: 10 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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
Expand All @@ -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

Expand Down Expand Up @@ -118,3 +125,5 @@ EMBED_COLOR=#000001
- Invite (/utilities invite)
- Restart (/utilities restart)
- Setup (/utilities setup)
- Top Chart (/topchart)
- Usable Stats (/usestats)
22 changes: 14 additions & 8 deletions disspace.js
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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
Expand All @@ -73,7 +81,5 @@ function spotifyOn(client) {
}

function spotifyOff() {
return new SpotifyPlugin({
emitEventsAfterFetching: true,
})
return new SpotifyPlugin({})
}
34 changes: 18 additions & 16 deletions package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand All @@ -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"
}
}

0 comments on commit 60c19a5

Please sign in to comment.