aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/Main.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/Main.java')
-rw-r--r--src/main/java/Main.java13
1 files changed, 11 insertions, 2 deletions
diff --git a/src/main/java/Main.java b/src/main/java/Main.java
index fde7ac4..0446a86 100644
--- a/src/main/java/Main.java
+++ b/src/main/java/Main.java
@@ -36,16 +36,19 @@ public class Main extends ListenerAdapter {
public static void setSlashCommands(){
- //jda.updateCommands();
+ // jda.updateCommands().queue();
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("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();
+ jda.upsertCommand(new CommandData("controls","Show an interface to control the player")).queue();
jda.upsertCommand(new CommandData("skip","Skips the current song")).queue();
jda.upsertCommand(new CommandData("nowplaying","Shows a detailed view of the current song playing")).queue();
jda.upsertCommand(new CommandData("stop","Stops the player and clears the queue")).queue();
+ jda.upsertCommand(new CommandData("remove","Remove a track in queue")).queue();
+ jda.upsertCommand(new CommandData("shuffle","Shuffle the current queue")).queue();
jda.upsertCommand(new CommandData("vtmusic","Queues a set number of random VTuber songs and covers").
addOption(OptionType.INTEGER,"number","Number of songs to queue")
).queue();
@@ -53,6 +56,7 @@ public class Main extends ListenerAdapter {
addOption(OptionType.INTEGER,"volume","Volume from 0-100")
).queue();
+
}
public static String readSetting(String parameter){
Object obj = null;
@@ -70,7 +74,12 @@ public class Main extends ListenerAdapter {
JDA jda = e.getJDA();
Message message = e.getMessage();
String msg = message.getContentDisplay();
- }
+ if(msg.startsWith("!maintenance") && e.getAuthor().getId().equals("246787839570739211")){
+ jda.getPresence().setActivity(net.dv8tion.jda.api.entities.Activity.watching("Maintenance Mode!"));
+ }
+
+ }
+
@Override
public void onReady(ReadyEvent event) {
System.out.println("Loading Complete");
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage