Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 2 months ago
JSON representation
A DisTube custom plugin for supporting VK Music.
- Host: GitHub
- URL: https://github.com/titsex/distube-vk-music-plugin
- Owner: titsex
- License: mit
- Created: 2024-01-11T21:26:30.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2024-09-17T21:20:32.000Z (3 months ago)
- Last Synced: 2024-09-27T05:03:54.605Z (3 months ago)
- Topics: discord, distube, music, plugin, vk, vkmusic
- Language: TypeScript
- Homepage:
- Size: 238 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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
```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