A music Discord bot written in discord.js.
Install node.js:
Windows: https://nodejs.org/en/download/.
Linux: https://nodejs.org/en/download/package-manager/.
Install dependencies:
npm i discord.js
npm i sodium
npm i ytdl-core
You also need to install ffmpeg:
Windows: https://ffmpeg.org/download.html#build-windows. Just copy all .exe files to project directory.
Linux: npm install ffmpeg
.
Then create new bot in https://discord.com/developers/applications and paste token to config file.
{
"prefix": "<prefix>",
"token": "<token>"
}
node bot.js