Yuii Bot
A very cool music bot made by inazys
A complete code to download for a music bot
⚡ Configuration
Open the configuration file config.js
.
module.exports = {
app: {
px: 'YOURPREFIX',
token: 'YOURTOKEN',
playing: 'ANYTHING'
},
opt: {
DJ: {
enabled: false,
roleName: 'DJ',
commands: ['back', 'clear', 'loop', 'pause', 'resume', 'seek', 'shuffle', 'skip', 'stop', 'volume']
},
maxVol: 100,
loopMessage: false,
discordPlayer: {
ytdlOptions: {
quality: 'highestaudio',
highWaterMark: 1 << 25,
dlChunkSize: 0,
}
}
}
};
Basic configuration
app/px
, the prefixapp/token
, the token of the bot Discord Developersapp/playing
, activity of the bot
📑 Installation
You need these thing
FFmpeg to process audio
Node JS (v16) Node.js 16.6.0 or newer is required.
npm install discord.js
yarn add discord.js
pnpm add discord.js
discord-player
Install$ npm install --save discord-player
@discordjs/opus
Install$ npm install --save @discordjs/opus
Also after download use npm i
to install all dependencies