Skip to content

Commit

Permalink
Fixed and Update
Browse files Browse the repository at this point in the history
  • Loading branch information
Adivise committed Nov 9, 2024
1 parent df5d3c4 commit 5a6eb42
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 40 deletions.
26 changes: 14 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<p align="center">
<img src="https://capsule-render.vercel.app/api?type=waving&color=gradient&height=200&section=header&text=DisGalaxyX&fontSize=80&fontAlignY=35&animation=twinkling&fontColor=gradient"/> </a>
<img src="https://capsule-render.vercel.app/api?type=waving&color=gradient&height=200&section=header&text=Doppelganger&fontSize=80&fontAlignY=35&animation=twinkling&fontColor=gradient"/> </a>
</p>

<p align="center">
Expand All @@ -11,7 +11,7 @@
</p>

## ⛔ Warning
if you need to use bot please add your server id to this first [access.json](https://github.com/Adivise/DisGalaxyX/blob/main/settings/models/access.json)
if you need to use bot please add your server id to this first [access.json](https://github.com/Adivise/Doppelganger/blob/main/settings/models/access.json)

## 📑 Feature
- [x] Music Systems
Expand All @@ -27,23 +27,25 @@ if you need to use bot please add your server id to this first [access.json](htt
- [x] SoundCloud
- [x] Spotify
- [x] Deezer
- [x] And More 700+ Site Support

<details><summary>📎 Requirements [CLICK ME]</summary>
<p>

## 📎 Requirements

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

</p>
</details>

## 📚 Installation

```
git clone https://github.com/Adivise/DisGalaxyX
cd DisGalaxyX
git clone https://github.com/Adivise/Doppelganger
cd Doppelganger
npm install
```

Expand Down Expand Up @@ -72,13 +74,13 @@ Copy or Rename `config.json.example` to `config.json` and fill out the values:
"01.",
"02.",
"03.",
"04.",
"05.",
"06.",
"07.",
"08.",
"09.",
"10."
"04.",
"05.",
"06.",
"07.",
"08.",
"09.",
"10."
],
"EMBED_COLOR": "#000001",
"OWNER_ID": "YOUR_DISCORD_ID",
Expand Down
18 changes: 8 additions & 10 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ 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 { YtDlpPlugin } = require('@distube/yt-dlp');

/// Call Config
const { TOKEN, PREFIX, OWNER_ID } = require("./settings/config.json");
Expand Down Expand Up @@ -36,15 +38,14 @@ for (let i = 0; i < TOKEN.length ; i++) {
if (!client.token) client.token = TOKEN[i];

client.distube = new DisTube(client, {
searchSongs: 0, /// SET TO 5 FOR ENABLE SEARCH MODE!
searchCooldown: 30,
leaveOnEmpty: true,
emptyCooldown: 120,
leaveOnFinish: true,
leaveOnStop: true,
savePreviousSongs: true,
emitAddListWhenCreatingQueue: true,
emitAddSongWhenCreatingQueue: true,
plugins: [
new SoundCloudPlugin(),
new DeezerPlugin(),
new YouTubePlugin(),
new YtDlpPlugin({ update: false }),
checkSpotify(client)
],
});
Expand All @@ -65,7 +66,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 @@ -74,7 +74,5 @@ function spotifyOn(client) {
}

function spotifyOff() {
return new SpotifyPlugin({
emitEventsAfterFetching: true,
})
return new SpotifyPlugin({})
}
22 changes: 11 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "disgalaxyx",
"version": "2.0.0b",
"name": "doppelganger",
"version": "3.0.0b",
"description": "✈ Join Discord: https://discord.gg/SNG3dh3MbR",
"main": "index.js",
"scripts": {
Expand All @@ -9,18 +9,18 @@
"author": "Adivise",
"license": "MIT",
"dependencies": {
"@discordjs/voice": "^0.16.1",
"@distube/deezer": "^1.1.0",
"@distube/soundcloud": "^1.3.3",
"@distube/spotify": "^1.5.2",
"@distube/ytsr": "^2.0.0",
"@distube/deezer": "^2.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",
"common-tags": "^1.8.2",
"delay": "^5.0.0",
"discord.js": "^14.14.1",
"distube": "^4.1.1",
"ffmpeg-static": "^4.4.1",
"libsodium-wrappers": "^0.7.9",
"discord.js": "^14.16.3",
"distube": "^5.0.4",
"libsodium-wrappers": "^0.7.15",
"lyrics-finder": "^21.7.0",
"opusscript": "^0.0.8",
"st.db": "^5.1.4"
Expand Down
14 changes: 7 additions & 7 deletions settings/config.json.example
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@
"01.",
"02.",
"03.",
"04.",
"05.",
"06.",
"07.",
"08.",
"09.",
"10."
"04.",
"05.",
"06.",
"07.",
"08.",
"09.",
"10."
],
"EMBED_COLOR": "#000001",
"OWNER_ID": "YOU_DISCORD_ID",
Expand Down

0 comments on commit 5a6eb42

Please sign in to comment.