Skip to content

kcidy/SimpleDiscordMusicBot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Music Bot

A simple music bot for Discord written in Java. This bot allows users to control music playback using commands. It supports the following commands: !play, !skip, !pause, and !unpause. Configuration is done through the application.configuration file.

1004(1)

Installation

  1. Clone the repository:

    git clone https://github.com/kcidy/SimpleDiscordMusicBot.git
    cd SimpleDiscordMusicBot
  2. Make sure you have Maven installed. Build the project using:

    mvn clean install
  3. Configure the application.configuration file:

bot.token=your_bot_token
bot.playing=music
bot.message.start=music start %title%
bot.message.pause=music pause
bot.message.unpause=music unpause
bot.message.skip=music skip
bot.message.no_matches=music no matches

Replace your_bot_token with your Discord bot token.

Commands

  • !play <URL>: Play music from the specified URL (e.g., a YouTube link).
  • !skip: Skip the current song.
  • !pause: Pause the current playback.
  • !unpause: Resume playback.

Running the Bot

Run the bot using the following command:

java -jar target/your-bot.jar

Make sure to replace your-bot.jar with the actual name of the built JAR file.

Notes

  • Ensure that you have the necessary permissions to manage voice channels on your Discord server.
  • The bot uses the JDA (Java Discord API) library to interact with the Discord API.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Contributing

If you would like to contribute to this project, please fork the repository, make your changes, and submit a pull request.


If you have any questions or suggestions, feel free to open an issue in the repository!

About

Music discord bot

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages