discord-youtube-player

1.1.2 • Public • Published

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

Package Sidebar

Install

npm i discord-youtube-player

Weekly Downloads

4

Version

1.1.2

License

ISC

Unpacked Size

36.4 kB

Total Files

14

Last publish

Collaborators

  • notadevps