Skip to content

AlexInCube/distube-yandex-music-plugin

Repository files navigation

npm peer dependency version npm GitHub Repo stars

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:

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 guide
  • uid:: 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