1.0.0 • Published 3 years ago
deathkillers-music-system v1.0.0
🎵 Death-Music-System
🔩 Installation
npm install Deathkillers-music-system@latest
💻 Code example
const Discord = require('discord.js'); // Require discord.js
const client = new Discord.Client(); // Create the bot client.
const MusicBot = require('death-music-system'); // Require the best package ever created on NPM (= require discord-music-system)
const bot = new MusicBot({
botPrefix: 'some prefix', // Example: !
ytApiKey: 'your Ytb API key', // Video to explain how to get it: https://www.youtube.com/watch?v=VqML5F8hcRQ
botClient: client // Your Discord client. Here we're using discord.js so it's the Discord.Client()
});
client.on('message', message => { // When the bot receive a message
if(message.content.startsWith(bot.prefix)) { // If the message starts with your prefix
bot.onMessage(message); // The music-system must read the message, to check if it is a music command and execute it.
};
});
client.login('some token'); // Login with your bot token. You can find the token at https://discord.com/developers/applications/
🚀 Language
- You can custom the bot language by editing the
language.json
in thelanguage
folder (3 translation included).
🤖 Commands
PLAY
play
,add
,join
- +
<search string | video URL | playlist URL>
STOP
stop
kill
destroy
leave
NOW PLAYING
np
nowplaying
current
SKIP
skip
next
>>
QUEUE
queue
list
show
VOLUME
volume
setvolume
- +
<valid number beetween 0 and 100>
PAUSE
pause
RESUME
resume
REMOVE
remove
delete
- +
<valid number of a song position in the queue>
LYRICS
lyrics
- +
<song title> || or no args if a song is playing
🖼 Gif example
🚀 Other
This package is under MIT license.
Note: This package is not affiliated with Discord or YouTube.