A discord music bot in java
Find a file
2022-12-05 19:27:00 +01:00
.github/workflows revert 2022-02-05 00:48:26 +01:00
gradle/wrapper change: upgrade gradle to support java 17 2022-01-06 00:21:57 +01:00
src/main Fixed Bot being stuck without playing 2022-12-05 19:27:00 +01:00
.gitignore new: debug logs 2022-05-10 13:05:40 +02:00
build.gradle new: debug logs 2022-05-10 13:05:40 +02:00
gradlew change: idk new gradle 2022-02-03 03:06:35 +01:00
gradlew.bat Initial commit with base 2021-11-03 18:01:46 +01:00
LICENSE Create LICENSE (#10) 2022-01-24 17:08:42 +01:00
README.md reformat: final reformat 2022-02-08 22:27:27 +01:00
settings.gradle Initial commit with base 2021-11-03 18:01:46 +01:00

ZtereoMUSIC

Is a discord music bot written in java using JDA. The name is prone to be changed in the future.

How to use:

  1. Run ./gradlew build or your system's equivalent in this repo
  2. Move ZtereoMUSIC-0.0.1-all.jar in a directory of your choice
  3. Create a config.json5 file with the following structure:
     {
         token: "ODg4MTE5NTk4MDkwNjgyMzc4.YUOD1A.wgB8Na03TEzP0qPeXX3uv5N5eaY", 
         prefix: "!",
         yt_api_key: "djasfhjasdhHOUIHIDhdi_oHIUShPIUAHSF",
         spotify_client_id: "2342kj34bhj23gjkh2p2o34j4k",
         spotify_client_secret: "23k4j234hchgf234fh42k3j2k2k2344",
     }
    
  4. Execute with your jvm of choice, requires java 16 for now.

Roadmap:

First alpha:

  • Play command with search on YouTube for title.
  • Pause command
  • Skip command
  • Disconnect command
  • Queue command to view queue (half assed lol)
  • Remove [index] to remove an element
  • Clear to clear queue
  • Clean up todos and code!

Second alpha:

  • Fancy embeds for everything!
  • VoiceChecks class to check for tunable micro-permissions (eg. if someone in a different channel calls the bot, don't connect)
  • Various listeners if there's nobody in vc for a while or if it gets disconnected or if last disconnects (stop playin) (very important as cleanup doesnt always get called)
  • Help command (on ping too)
  • Spotify URLs/playlists support (search on YouTube)
  • When a track fails try to play it again and if that fails send the error message.

Later:

  • Toggleable permissions system based on DJ role and based on server
  • Per-server prefix with database
  • fast forward command
  • Ability to search the song name
  • Slash commands?
  • Proper database for server preferences (prefix etc)
  • what if i made a command system kinda like method overloading that will execute different methods of the command depending on what and how many args are passed
  • Other TBA...

Thankies

This wouldn't have been possible without the amazing folks behind lavaplayer and JDA. And without ReperakDev and FoxShadew. Thank you.