Skip to content

titsex/distube-vk-music-plugin

Repository files navigation

distube-vk-music-plugin

Custom Distube plugin for VK Music support.

Feature

type example link ☑️
playlist https://vk.com/music/playlist/-192000782_406
album https://vk.com/music/album/-2000892528_18892528
artist https://vk.com/artist/nepridymal_mty0oty4odm2mw
audio https://vk.com/audio-2001624323_122624323
group https://vk.com/ne_pridymal_group
user https://vk.com/titsex

Installation

npm install distube-vk-music-plugin
yarn add distube-vk-music-plugin
pnpm add distube-vk-music-plugin
bun add distube-vk-music-plugin

Using

import { VKMusicPlugin } from 'distube-vk-music-plugin'
import { Client, GatewayIntentBits } from 'discord.js'
import { DisTube } from 'distube'

const client = new Client({
    intents: [
        GatewayIntentBits.Guilds,
        GatewayIntentBits.GuildMessages,
        GatewayIntentBits.MessageContent,
        GatewayIntentBits.GuildMembers,
        GatewayIntentBits.GuildVoiceStates,
    ]
})

const distube = new DisTube(client, {
    plugins: [new VKMusicPlugin({ token: 'vk token' })]
})

client.login('bot token')

Documentation

VKMusicPlugin[VKMusicPluginOptions]

  • token is required, to get it, follow the link, click "allow" and copy everything between access_token= and &expires_in