Discord Music Bot
🎧 A music bot for Discord servers, self-hosted and easy to use.


Note: This is still very much a work-in-progress and will contain bugs!
- Documentation will be added when there's something a bit more tangible to use.
- A
v1.0.0
release will be tagged when it's a bit more completed.
Until then, watch this space and let me know if there's anything I should consider building into it by raising an issue.
Also check out the v1.0.0 board for progress and feature report.
If you get this running, use !help
to get a list of commands.
Example usage
Basic
Install: npm i discord-musicbot
Create a file called run.js
and place the following in it (replace variables where applicable).
const MusicBot = require('discord-musicbot');
const config = {
token: 'YOUR DISCORD TOKEN',
serverId: 'YOUR SERVER ID',
textChannelId: 'YOUR COMMANDS TEXT CHANNEL ID',
permissions: {
users: {
'YOUR USER ID': 'admin',
},
}
};
const musicBot = new MusicBot(config);
musicBot.run();
Once done, start the bot with with node run.js
.
Advanced
const MusicBot = require('discord-musicbot');
const config = {
token: 'YOUR DISCORD TOKEN',
serverId: 'YOUR SERVER ID',
textChannelId: 'YOUR COMMANDS TEXT CHANNEL ID',
settings: {
commandPrefix: '~',
},
replies: {
general: {
unknownCommand: 'Looks like I don\'t know that one!',
},
},
logging: {
connected: 'Bot started and connected.',
},
permissions: {
groups: {
admin: {
disconnect: true,
setavatar: true,
setusername: true,
},
poweruser: {
disconnect: true,
},
},
users: {
'YOUR USER ID': 'admin',
'FRIENDS USER ID': 'admin',
'ANOTHER USER ID': 'poweruser',
'YET ANOTHER USER ID': 'nogroup',
},
}
};
const musicBot = new MusicBot(config);
musicBot.run();
License
This project is licensed under GNU GPLv3
Copyright (C) 2017 Alex Gabites
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.