1.1.2 • Published 4 years ago
discord-youtube-player v1.1.2
Discord Music Player a music player based on discord.js\ with typescript support and all types of filters
Documentation available link
Quickstart
do install ffmpeg , ffmpeg-static and opus
make a file in an IDE of your choice you can start with
const discord = require('discord.js');
const client = new discord.Client();
const { Player } = require ('discord-music-player');
const player = new Player(client, { autoSelfDeaf: true });
Events
queueCreated -> when a queue is created
trackEnded -> when a track is ended
queueEnded -> when ther is no tracks to play
trackAdded -> when a track is added in queue
error -> error occured
EXAMPLE
player.on('trackEnded', (q, msg) => {
return msg.channel.send('track ended');
})
player.on('trackAdded' , (q, msg, track) => {
return msg.channel.send('track added');
})
player.on('error', (e) => {
return msg.channel.send('error occured ' + e);
})
player.on('queueCreated', (q, msg) => {
return msg.channel.send('queueCreated');
})
player.on('queueEnded' , (q, msg) => {
return msg.channel.send('queueCreated');
})
discord bot example LINK\ for more info join our support server LINK