Skip to content

Commit

Permalink
added support for deezer & tidal links
Browse files Browse the repository at this point in the history
  • Loading branch information
LakhindarPal committed May 13, 2024
1 parent f4be0f6 commit 656aecb
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
Binary file modified bun.lockb
Binary file not shown.
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@
"@discord-player/extractor": "^4.4.7",
"chalk": "^4.1.2",
"discord-player": "^6.6.8",
"discord-player-deezer": "^1.0.1",
"discord-player-tidal": "^0.1.0",
"discord.js": "^14.14.1",
"dotenv": "^16.4.5",
"ejs": "^3.1.10",
Expand Down
5 changes: 4 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ require("./modules/checkValid");
const { Client, Collection, GatewayIntentBits } = require("discord.js");

const { Player } = require("discord-player");

const { default: DeezerExtractor } = require("discord-player-deezer");
const { default: TidalExtractor } = require("discord-player-tidal");
const bot = new Client({
intents: [GatewayIntentBits.Guilds, GatewayIntentBits.GuildVoiceStates],
});
Expand All @@ -17,6 +18,8 @@ bot.utils = require("./modules/utils");
bot.say = require("./modules/reply");

const player = Player.singleton(bot);
player.extractors.register(DeezerExtractor);
player.extractors.register(TidalExtractor);
player.extractors.loadDefault();

require("./handlers/Event")(bot);
Expand Down

0 comments on commit 656aecb

Please sign in to comment.