1.0.0 ā€¢ Published 3 years ago

discord-music-kit7 v1.0.0

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

Welcome to Discord Music Kit āš” šŸ‘‹

Version License: ISC Twitter: r0xptth

Discord Music API that makes coding a music bot 10x easier.

Install

npm i discord-music-kit

Setup

const discord = require('discord.js');
const client = new Client();

const MusicKit = require('discord-music-kit'),
const Music = new API(client, "!");


client.on('message', message => {

    /* 
        Music.helpEmbed ~ Optional
        If not used then default embed will show.
    
    */
    Music.helpEmbed
        .setColor(VALUE)
        .setAuthor(VAVLUE, VALUE)
        .setImage(VALUE)
        .setThumbnail(VALUE)
        .setTimestamp(VALUE)
        .setTitle(VALUE)
        .setURL(VALUE)
        .setDescription(VALUE)
        .setFooter(VALUE, VALUE)
        



    /* SETTING UP YOUR COMMANDS */

    if (message.content.startsWith("!help")) {
        Music.help(message);
    } else if (message.content.startsWith("!play")) {
        Music.play(message);
    } else if (message.content.startsWith("!disconnect")) {
        Music.disconnect(message);
    } else if (message.content.startsWith("!skip")) {
        Music.skip(message);
    } else if (message.content.startsWith("!stop")) {
        Music.stop(message);
    } else if (message.content.startsWith("!resume")) {
        Music.resume(message);
    } else if (message.content.startsWith("!pause")) {
        Music.pause(message);
    } else if (message.content.startsWith("!queue")) {
        Music.queue(message);
    } else if (message.content.startsWith("!volume")) {
        Music.volume(message);
    } else if (message.content.startsWith("!loop")) {
        Music.loop(message);
    } else if (message.content.startsWith("!seek")) {
        Music.seek(message);
    } else {
        return;
    }

});


client.login(BOT_TOKEN);

Author

šŸ‘¤ antonee_

Show your support

Give a ā­ļø if this project helped you!


This README was generated with ā¤ļø by readme-md-generator