From 05738d97ac129a2651543cd4364a19db9dfc544a Mon Sep 17 00:00:00 2001 From: Donald Shan Date: Sat, 10 Dec 2022 18:27:06 -0800 Subject: Added recursive queue --- src/main/java/Main.java | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/main/java/Main.java') diff --git a/src/main/java/Main.java b/src/main/java/Main.java index 0446a86..30983d9 100644 --- a/src/main/java/Main.java +++ b/src/main/java/Main.java @@ -40,6 +40,10 @@ public class Main extends ListenerAdapter { jda.upsertCommand(new CommandData("play","Adds a song to the queue with a URL or search terms"). addOption(OptionType.STRING,"term","The link or search terms of the music to queue") ).queue(); + jda.upsertCommand(new CommandData("queue-recursive","Adds a set amount of random songs from a playlist"). + addOption(OptionType.STRING,"url","The link of the playlist") + .addOption(OptionType.INTEGER,"amount","The amount of songs to queue") + ).queue(); jda.upsertCommand(new CommandData("leave","Clears the queue and disconnects the bot from voice channel")).queue(); jda.upsertCommand(new CommandData("showqueue","Shows the current queue")).queue(); jda.upsertCommand(new CommandData("pause","Pauses the player")).queue(); -- cgit v1.2.3