1.2.1 • Published 4 years ago
@addict67/music-bot v1.2.1
Music Bot
A simple Discord.js music bot with lot of features
Commands
!!play (title|url)
: Add a song to the queue!!playlist (url)
: Add a playlist to the queue!!current
: Display the currently played song!!skip
: Skip the currently played song!!stop
: Stop the currently played song and clear the queue!!list
: Display each song title in queue!!remove (index)
: Remove from the queue the song at position index!!volume (0-100)
: Change music volume!!help
: Display each commands and their description
Examples:
!!play https://www.youtube.com/watch?v=dQw4w9WgXcQ
!!volume 50
Installing
Make sure you have the latest version of FFMPEG installed!
npm install @addict67/music-bot
Quick Start
MusicBot's constructor takes an object with these properties:
discordToken
: Your Discord bot token. Required to rungoogleKey
: Your Google API key. Required to runprefix
: Commands' prefix. Default is!!
// Imports module
const MusicBot = require('@addict67/music-bot');
// Creates bot object
const bot = new MusicBot({
discordToken: 'xxx',
googleKey: 'xxx',
prefix: '!'
});
// Starts bot
bot.start();
Contributing
See the CONTRIBUTING.md file for details
License
This project is licensed under the MIT License - see the LICENSE.md file for details