LakhindarPal / discord-player-tidal

Tidal extractor for Discord Player

Home Page:https://npm.im/discord-player-tidal

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Discord Player Tidal Extractor

Discord Player Tidal Extractor. An extractor made for discord-player for Tidal support. Tidal extractor works by either making a request to the Tidal API or extracting metadata from the Tidal site. Because we cannot get streams from tidal itself, the extractor uses the extracted data to stream from youtube!

Installing the extractor

npm install discord-player-tidal
# or
yarn add discord-player-tidal

Loading the extractor

CJS

const TidalExtractor = require("discord-player-tidal").default // or const { default: TidalExtractor } = require("discord-player-tidal")
const player = getMainPlayerSomehow()

player.extractors.register(TidalExtractor)

ESM

import { default as TidalExtractor } from "discord-player-tidal"

const player = getMainPlayerSomehow()

player.extractors.register(TidalExtractor)

Typescript

import TidalExtractor from "discord-player-tidal"

const player = getMainPlayerSomehow()

player.extractors.register(TidalExtractor)

note: be sure to register it before loading the default extractors to make sure any conflicts with discord-player's default attachment extractor is resolved!

That's it! See the magic happen as you bot is now able to play from Tidal URLs

About

Tidal extractor for Discord Player

https://npm.im/discord-player-tidal

License:MIT License


Languages

Language:TypeScript 100.0%