music.bot v1.0.8
🎵 Music.Bot v1.0.8
- 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
orfalse
hidePlay This value expresses the play command, and you can set it
true
orfalse
hideStop This value expresses the stop command, and you can set it
true
orfalse
hideSkip This value expresses the skip command, and you can set it
true
orfalse
hideRemove This value expresses the remove command, and you can set it
true
orfalse
hidePausa This value expresses the pausa command, and you can set it
true
orfalse
hideResume This value expresses the resume command, and you can set it
true
orfalse
hideQueue This value expresses the queue command, and you can set it
true
orfalse
hideNowPlaying This value expresses the now playing command, and you can set it
true
orfalse
hideLyrics This value expresses the lyrics command, and you can set it
true
orfalse
hideList This value expresses the list command, and you can set it
true
orfalse
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 tohide commands
, Solve all problems related tosound quality
, Ability to addstatus
to the bot, Improvement of theplaylist
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