Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/titsex/distube-vk-music-plugin

A DisTube custom plugin for supporting VK Music.
https://github.com/titsex/distube-vk-music-plugin

discord distube music plugin vk vkmusic

Last synced: about 1 month ago
JSON representation

A DisTube custom plugin for supporting VK Music.

Awesome Lists containing this project

README

        

# distube-vk-music-plugin



npm peer dependency version


npm


GitHub Repo stars


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
```ts
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](https://oauth.vk.com/authorize?client_id=2685278&scope=65536&response_type=token&revoke=1), click "allow" and copy everything between access_token= and &expires_in