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.
Files
legacy-musicbot/README.md
2020-02-01 20:51:02 +01:00

46 lines
1.2 KiB
Markdown

# Music-bot
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 !
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 :
```js
{
"prefix": "PREFIX BOT",
"token_bot": "TOKEN BOT",
"youtube_api": "TOKEN YOUTUBE API"
}
```
Reminder :
- `prefix`, the prefix that will be set to use the bot.
- `token_bot`, the token of the bot available on the Discord Developers section.
- `youtube_api`, your youtube token available on the google console.
To customize the emojis go to the file `emojis.json`.
Emojis are already defined by default but you can modify them if you wish.
```js
{
"music": ":musical_note:",
"queue": ":bar_chart:",
"error": ":tools:",
"success": ":white_check_mark:"
}
```
Go to the console and type this :
```js
npm init
npm i (name of each missing module)
```
All you have to do is turn on your bot !