MusicBot
MusicBot copied to clipboard
An enhanced music bot that is compatible with discord.js v14 and works with slash commands. Discord music bot codes that can be used on any server and are simple to install.
Discord.js v14 Slash Commands Music Bot
Bot Setup
Click here for a setup video, but these instructions are up to date so make sure to follow them if the video is different.
- Install node and npm
- Clone this repository or download as a zip and extract the contents.
- Run
npm install. - Bot login: write to .env file is
TOKEN=YOUR BOT TOKENor: write config.js file to your bot token.
NOTE: IF THE BOT IS WORKING, RESPONDING TO COMMANDS BUT NO SOUND, FOLLOW THESE STEPS:
Enter the page of your project that you opened on -replit.com.
- Click on the one that says shell from the boxes that say console and shell above the opened box at the bottom right.
- Type npm uni discord-player
- Type npm i [email protected]
- Type npm uni ytdl-core
- Type npm i [email protected]
- Turn off and on the bot from the button that says "Stop" or "Run" in the middle of the replit screen
Notes on Discord Bot Setup
- Make sure to enable all intents in the Discord Developer Portal

- You will also need to invite the bot using the correct scope and permissions, which you can do here:
