Skip to content

A complete code to download for a music bot. Using a module (discord-player).

Notifications You must be signed in to change notification settings

limxuan/music-bot-v12

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Music-bot

youtube tutorial : https://youtu.be/JF6D12OxYNA

A complete code to download for a music bot. Using a module (discord-player) 🎧

Looking for a code for a music bot ? This fully open source code is made for your project ! Warning, this code uses the v12 of the discord.js module. Previous versions such as (11.5.1, 11.5.0 or other) will not be supported.

⚡ Installation

Well, let's start by downloading the code. Go to the folder config then the file config.json. For the bot to be able to start, please complete the file with your credentials as follows :

{
    "game": "GAME",
    "prefix": "PREFIX",
    "token_bot": "TOKEN"
}

Reminder :

  • game, the status of the bot.
  • prefix, the prefix that will be set to use the bot.
  • token_bot, the token of the bot available on the Discord Developers section.

To customize the emojis go to the file emojis.json. Emojis are already defined by default but you can modify them if you wish.

{
    "music": ":musical_note:",
    "queue": ":bar_chart:",
    "error": ":x:",
    "success": ":white_check_mark:"
}

In the console, type npm install to install all dependencies.

To start the bot :

#With Node
node index.js

#With pm2
pm2 start index.js --name "MusicBot"

All you have to do is turn on your bot !

🎵 Music commands

play <name>, play music in a voice channel.
pause, pause the current music.
resume, puts the current music back on. 
queue, see the next musics.
clear-queue, delete the next music.
shuffle, to mix the queue.
np, see music in progress.
loop, to enable or disable the repeat function.
volume <1 - 100>, change the volume.
skip, skip to next music.
stop, stop all music.

💡 General commands

help, see the list of available orders.
ping, see the bot latency.

🏓 Utilities (to change the code)

Find all the functions available on the official code right here.

This is used with discord.js and discord-player.

About

A complete code to download for a music bot. Using a module (discord-player).

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%