An open source discord bot that plays music.
1 - Create a new application
2 - Create a new bot
3 - In the Bot section, turn on the PRESENCE INTENT
, SERVER MEMBERS INTENT
and MESSAGE CONTENT INTENT
4 - Generate the link to invite the bot in the OAuth2 -> URL Generator section.
- Open the terminal and run this commands.
git clone https://github.com/IgorBayerl/Discord-MusicBot.git
cd Discord-MusicBot
Before start you need to configure your bot.
The file with all the configurations you need to do is located in the main folder config.js
.
module.exports = {
app: {
prefix: '!',
token: 'XXXXXXXXXXXXXX',
playing: 'Making this server 200% more fun!',
maxVolume: 100,
loopMessage: false,
discordPlayer: {},
language: 'en',
DJ: {
enabled: false,
roleName: 'XXX',
commands: []
}
}
};
app.px
, the prefix that will be set to use the botapp.token
, the token of the bot available on the Discord Developers sectionapp.playing
, the activity of the botapp.maxVol
, the maximum volume that users can defineapp.loopMessage
, if the message that a music is played should be sent when it is loopedapp.discordPlayer
, options used by discord-playerapp.language
, select the language of the messages - ( Not working yet )app.DJ.enabled
, whether the DJ mode should be activated or notapp.DJ.roleName
, the name of the DJ role to be usedapp.DJ.commands
, the list of commands limited to members with the DJ role