distube-yandex-music-plugin
v1.0.5
Published
A DisTube custom plugin for supporting Yandex Music.
Downloads
28
Maintainers
Readme
distube-yandex-music-plugin
A DisTube custom plugin for supporting Yandex Music URL. Created by AlexInCube
Warning
If you want to use it with Distube v4, install v0.2.1 version of this plugin. Version ^1.0.3 works only with Distube v5.
Feature
This plugin grabs the songs on Yandexmusic and plays with DisTube.
Examples of supported links:
- Public track https://music.yandex.com/album/10030/track/38634572
- Albums https://music.yandex.ru/album/5307396
- Playlists https://music.yandex.ru/users/alexander.tsimbalistiy/playlists/1000
If you have some troubles, please create an issue.
You need the Premium Subscription in Yandex Music if you want to use this API outside Russia VDS
Installation
npm install distube-yandex-music-plugin@latest
Usage
const Discord = require("discord.js");
const client = new Discord.Client();
const { DisTube } = require("distube");
const { YandexMusicPlugin } = require("distube-yandex-music-plugin");
const distube = new DisTube(client, {
plugins: [new YandexMusicPlugin({
oauthToken: "your_token",
uid: "your_uid"
})],
});
Documentation
YandexMusicPlugin([YandexMusicPluginOptions])
oauthToken:
: Required for using Yandex API. You can retrieve token by following this guideuid:
: Required for using Yandex API. You can retrieve uid by opening Yandex Mail and copy uid from url in address bar.
Token and UID must relate to one account