1.1.2 • Published 3 years ago

w-music v1.1.2

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

W-Music

One of the best bots that can give you music and economie with barely typing anything

npm i w-music

What can this package do?

  • All commands are already built in

  • A lot of commands to keep your server alive

  • You do not need to set up any database

  • And more...

To setup the music

const Discord = require('discord.js'); // Require discord.js
const client = new Discord.Client(); // Create the bot client.
const { Music } = require('w-music'); //Require the package
 
const music = new Music({
    clientPrefix: "!", // Prefix of the bot
    youtubeApiKey: "YOUTUBE_API_KEY", // Youtube api key
    discordClient: client, // Your bots client. In this example the client is called "client"
    config: {
        helpCommand: true // If set true it will have a help command. False will turn off help command
    }
})
  client.on('message', message => { // Message even
    music.onMessage(message);
});
 
client.login('BOT_TOKEN') //Your bot's token

Commands of the music and aliases:

Command nameAliasArguments
playp, addsong / link
stopkill, destroyNo arguments needed
pauseNo AliasesNo arguments needed
resumeresNo arguments needed
skipsNo arguments needed
now-playnow-playing, npNo arguments needed
cleardelete-queueNo arguments needed
repeatloopNo arguments needed
joinconnectNo arguments needed
volumevol, setvolume1 - 100
queueqNo arguments needed