0.2.1 • Published 10 months ago
distube-yandex-music-plugin v0.2.1
distube-yandex-music-plugin
A DisTube custom plugin for supporting Yandex Music URL. Created by AlexInCube
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
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()],
});
Documentation
YandexMusicPlugin(YandexMusicPluginOptions)
oauthToken:
: Required for using Yandex API. You can retrieve token by following this guide
Example
new YandexMusicPlugin({
oauthToken: "YandexMusicToken"
});