1.0.8 • Published 3 years ago

music.bot v1.0.8

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

🎵 Music.Bot v1.0.8

NPM

  • A simple Node.js based music extension/bot for Discord.js projects using YouTube.

🔌 Getting Started

You can start install the package on your project:

npm i music.bot@latest

You can update to a newer version to receive updates using npm.

npm update music.bot

Usage

const MusicBot = require('music.bot'),Discord = require('discord.js'),client = new Discord.Client(),
settings = new MusicBot({ botPrefix: '#',botClient: client });
client.on('message', message => {
    if(message.content.startsWith(settings.prefix)) { 
        settings.onMessage(message);
    };
});
client.login('Token Bot)

Basic settings

  • botPrefix The prefix for your bot that you will use with commands

  • botClient Your client name in discord js

  • ytApiKey If you want to use a YouTube key from your own

const MusicBot = require('music.bot');
const Discord = require('discord.js'); 
const client = new Discord.Client(),
settings = new MusicBot({
    botPrefix: '#',
    botClient: client,
  //ytApiKey: `If you want to use a YouTube key from your own`,
});

If you want to hide the some commands

  • hideHelp This value expresses the help command, and you can set it true or false

  • hidePlay This value expresses the play command, and you can set it true or false

  • hideStop This value expresses the stop command, and you can set it true or false

  • hideSkip This value expresses the skip command, and you can set it true or false

  • hideRemove This value expresses the remove command, and you can set it true or false

  • hidePausa This value expresses the pausa command, and you can set it true or false

  • hideResume This value expresses the resume command, and you can set it true or false

  • hideQueue This value expresses the queue command, and you can set it true or false

  • hideNowPlaying This value expresses the now playing command, and you can set it true or false

  • hideLyrics This value expresses the lyrics command, and you can set it true or false

  • hideList This value expresses the list command, and you can set it true or false

const MusicBot = require('music.bot');
const Discord = require('discord.js'); 
const client = new Discord.Client();
const settings = new MusicBot({
    botPrefix: 'e',//The prefix for your bot that you will use with commands
    botClient: client,//Your client name in discord js
    ytApiKey: `You yt Api key`, //If you want to use a YouTube key from your own
//If you want to hide the some commands
    hideHelp: false,
    hidePlay: false,
    hideStop: false,
    hideSkip: false,
    hideRemove: false,
    hidePausa: false,
    hideResume: false,
    hideQueue: false,
    hideNowPlaying: false,
    hideLyrics: false,
    hideList: false,
});

💡 Example for you to run music commands

const MusicBot = require('music.bot');
const Discord = require('discord.js'); 
const client = new Discord.Client();
const settings = new MusicBot({
    botPrefix: '#',//The prefix for your bot that you will use with commands
    botClient: client,//Your client name in discord js
 // ytApiKey: `You Api yt`, //If you want to use a YouTube key from your own
 // hideHelp: true, //If you want to hide the help order
});

client.on('message', message => {
    if(message.content.startsWith(settings.prefix)) { 
        settings.onMessage(message);
    };
});

🔋 Example for you to run music commands with stay bot in voice channel

const MusicBot = require('music.bot');
const Discord = require('discord.js'); 
const client = new Discord.Client();
const settings = new MusicBot({
    botPrefix: '#',//The prefix for your bot that you will use with commands
    botClient: client,//Your client name in discord js
 // ytApiKey: `You Api yt`, //If you want to use a YouTube key from your own
 // hideHelp: true, //If you want to hide the help order
});

client.on('message', message => {
    if(message.content.startsWith(settings.prefix)) { 
        settings.onMessage(message);
    };
});

client.on('ready', ready => {
 settings.botStayChannel('827504973972897792')//Type the audio channel identifier
})

If you want to add status

client.on('ready', ready => {
 settings.botSetStatus(`Your Status`)
});

You can specify a time when the bot exits the audio channel and returns it after a period of time

client.on('ready', ready => {
  // '25' Note Time is calculated per second
 settings.botStayChannel('827504973972897792', 25)//Type the audio channel identifier
})

Changelog

  • 2021/04/03(v1.6)

    Add the ability to specify a time to stay in the sound rheum, Added the ability to hide commands, Solve all problems related to sound quality, Ability to add status to the bot, Improvement of the playlist commands format,

⚡ Help Panel

  • PLAY Description:

    Play a song or add it to the queue.

  • STOP Description:

    Play a song or add it to the queue

  • PAUSA Description:

    Pause the current song.

  • RESUME Description:

    Resume music if it was paused.

  • QUEUE Description:

    Display each song title in queue.

  • NOWPLAYING Description:

    Display the currently played song.

  • SKIP Description:

    Skip the currently played song

  • VOLUME Description:

    Change music volume.

  • LYRICS Description:

    Displyay the lyrics of a song.

  • ADD Description:

    To add a song in the playlist

  • REMOVE Description:

    To add a song in the playlist

  • LIST Description:

    To show the music playlist

💖 Any Bug Or Suggestion !!

  • Contact With Me Discord: Shuruhatik#0001
  • or Discord Server ST Studio

❗ License

💌 ST STudio

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.50

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago