Skip to content

Latest commit

 

History

163 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MusicBro

MusicBro is a music bot for Discord, built using discord.js and discord-player.

Commands

MusicBro provides the following slash commands:

  1. clear - Clears the entire queue.
  2. info - Displays information about the bot's ping.
  3. nowplaying - Displays information about the currently playing song with lyrics.
  4. lyrics - Fetches and displays the lyrics of the currently playing song or a specified song.
  5. play - Searches for a song or playlist based on a link or query and starts playing. Supports optional flags: force (plays immediately), next (inserts as next), and mix (automatically appends ~25 similar mix tracks).
  6. remove - Removes a song from the queue.
  7. seek - Seeks to a specified time in the current song.
  8. skipto - Skips to a specified song in the queue.
  9. volume - Adjusts the volume of the playback.

And also the following button commands:

  1. embedClose - Closes embed.
  2. loopDisable - Disables looping.
  3. loopQueue - Loops the queue.
  4. loopTrack - Loops the current song.
  5. next - Changes page to the next page of the queue.
  6. pause - Pauses the playback.
  7. previous - Changes page to the previous page of the queue.
  8. refresh - Refreshes the status message.
  9. resume - Resumes the playback.
  10. shuffle - Shuffles the queue.
  11. skip - Skips the current song.
  12. stop - Stops the playback and clears the queue.

Additionally, MusicBro provides the following prefix commands:

  • !!clear - Deletes messages sent by the bot in the current channel.
  • !!avatar_update - Updates the bot's avatar and banner.*

*These commands are only available to the bot's admin.

Example status messages

Logging

MusicBro logs events to two separate files:

  1. log.log - Records all general system events.
  2. dev.log - Records events in development mode; use the debug argument to enable more detailed logging, e.g., npm run dev -- debug.

Setup

  1. Clone this repository to your local machine.
  2. Install the required dependencies using the following command:
npm install
  1. Create a .env file in the project's root directory and add the following environment variables:
  • TOKEN: Token of the bot.

  • CLIENT_ID: Client ID of the bot.

  • ADMIN_ID: ID of the admin.

    Optional:

    • TOKEN_DEV: Token of the bot for development purposes.
    • CLIENT_ID_DEV: Client ID of the bot for development purposes.

For example:

TOKEN=1234567890
CLIENT_ID=1234567890
  1. Register your bot's slash commands using the following command:
npm run deploy
  1. Run the bot using the following command:
npm start

I personally recommend using nodemon to run the bot, as it will automatically restart the bot when you make changes to the code. To use nodemon, run the following command:

nodemon

The bot should now be online and ready to use in your Discord server.

For development purposes, you can run the bot using the command npm run dev.

License

MusicBro is released under the MIT License.

Credits

MusicBro was created by pingwin02.

About

🎵 MusicBro - Discord music bot

Resources

Stars

1 star

Watchers

1 watching

Forks

Used by

Contributors

Languages