aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/utility/StatusHandler.java
blob: eb338d37f802f0c6afabfa10a8b77f698cd2d787 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
package utility;


import net.dv8tion.jda.api.JDA;
import net.dv8tion.jda.api.interactions.commands.OptionType;
import net.dv8tion.jda.api.interactions.commands.build.*;

public class StatusHandler {
    static JDA jda;

    public StatusHandler(JDA jda) {
        this.jda = jda;
    }

    public static void setSlashCommands() {
        jda.updateCommands()
                .addCommands(
                        Commands.slash("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", true))
                .addCommands(
                        Commands.slash("queue-recursive", "dds a set amount of random songs from a playlist").
                                addOption(OptionType.STRING, "url", "The link of the playlist", true)
                                .addOption(OptionType.INTEGER, "amount", "The amount of songs to queue", true))
                .addCommands(
                        Commands.slash("leave", "Clears the queue and disconnects the bot from voice channel"))
                .addCommands(
                        Commands.slash("showqueue", "Shows the current queue"))
                .addCommands(
                        Commands.slash("pause", "Pauses the player"))
                .addCommands(
                        Commands.slash("controls", "Show an interface to control the player"))
                .addCommands(
                        Commands.slash("skip", "Skips the current song"))
                .addCommands(
                        Commands.slash("nowplaying", "Shows a detailed view of the current song playing"))
                .addCommands(
                        Commands.slash("stop", "Stops the player and clears the queue"))
                .addCommands(
                        Commands.slash("remove", "Removes a song from the queue"))
                .addCommands(
                        Commands.slash("shuffle", "Shuffles the queue"))
                .addCommands(
                        Commands.slash("vtmusic", "Queues a set number of random VTuber songs and covers").
                                addOption(OptionType.INTEGER, "number", "Number of songs to queue", true))
                .addCommands(
                        Commands.slash("volume", "Set the volume or leave blank to check current volume").
                                addOption(OptionType.INTEGER, "volume", "Volume from 0-100"))
                .addCommands(
                        Commands.slash("pop", "Pop a particular song by index from the queue").
                                addOption(OptionType.INTEGER, "index", "Index of the song to pop", true))
                .addCommands(
                        Commands.slash("boost", "Boost a particular song by index from the queue").
                                addOption(OptionType.INTEGER, "index", "Index of the song to boost", true)
                )
                .queue();

    }

}
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage