This repository has been archived on 2026-03-28. You can view files and clone it. You cannot open issues or pull requests or push a commit.
2020-11-15 18:50:41 +01:00
2020-11-15 18:50:41 +01:00
2020-08-23 16:25:33 +02:00
2020-11-15 18:48:03 +01:00
2020-04-24 16:29:20 +02:00
2020-11-15 18:46:36 +01:00
2020-06-25 18:07:21 +02:00
2020-10-27 21:37:03 +01:00

Music-bot

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

The module (discord-player) may currently encounter various problems as a result. Please don't open exits or don't contact me. I am aware of these multiple problems. I have already reported them to the creator of the module, who is already working on them ⚠️

Looking for a code for a music bot ? This fully open source code is made for your ! 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.

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 :

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

Reminder :

  • prefix, the prefix that will be set to use the bot.
  • game, the status of 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:"
}

Go to the console and type this :

npm i

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 vocal salon.
pause, pause the current music.
resume, puts the current music back on. 
queue, see the next musics.
np, see music in progress.
volume <1 - 100>, change the volume.
loop, to enable or disable the repeat function.
skip, skip to next music.
stop, stop all music.
filter <filter>, add / remove filters.
w-filters, see filters.
clear-queue, delete the next 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.

Description
legacy musicbot
Readme GPL-3.0 294 KiB
Languages
JavaScript 99.5%
Dockerfile 0.5%