Fix typo and remove duplicate command

This commit is contained in:
Ghoti 2020-08-05 23:06:50 -05:00
parent 6c2f1900c2
commit 3b65e91d10
3 changed files with 1 additions and 36 deletions

View File

@ -48,7 +48,6 @@ import com.fpghoti.biscuit.commands.client.music.SkipCommand;
import com.fpghoti.biscuit.commands.client.music.TogglePauseCommand; import com.fpghoti.biscuit.commands.client.music.TogglePauseCommand;
import com.fpghoti.biscuit.commands.client.music.UnpauseCommand; import com.fpghoti.biscuit.commands.client.music.UnpauseCommand;
import com.fpghoti.biscuit.commands.client.music.VolumeCommand; import com.fpghoti.biscuit.commands.client.music.VolumeCommand;
import com.fpghoti.biscuit.commands.client.music.WipeQueueCommand;
import com.fpghoti.biscuit.commands.console.GuildSayCommand; import com.fpghoti.biscuit.commands.console.GuildSayCommand;
import com.fpghoti.biscuit.commands.console.SayCommand; import com.fpghoti.biscuit.commands.console.SayCommand;
import com.fpghoti.biscuit.commands.console.ShutdownConsoleCommand; import com.fpghoti.biscuit.commands.console.ShutdownConsoleCommand;
@ -171,7 +170,6 @@ public class Main {
CommandManager.addCommand(new QueueCommand()); CommandManager.addCommand(new QueueCommand());
CommandManager.addCommand(new SkipCommand()); CommandManager.addCommand(new SkipCommand());
CommandManager.addCommand(new NowPlayingCommand()); CommandManager.addCommand(new NowPlayingCommand());
CommandManager.addCommand(new WipeQueueCommand());
CommandManager.addCommand(new LoopMusicCommand()); CommandManager.addCommand(new LoopMusicCommand());
CommandManager.addCommand(new VolumeCommand()); CommandManager.addCommand(new VolumeCommand());
CommandManager.addCommand(new ShuffleCommand()); CommandManager.addCommand(new ShuffleCommand());

View File

@ -14,7 +14,7 @@ public class MoveToCommand extends MusicClientCommand{
public MoveToCommand() { public MoveToCommand() {
name = "Move To"; name = "Move To";
description = "Moves track to specified position."; description = "Moves track to specified position.";
usage = Main.getMainBiscuit().getProperties().getCommandSignifier() + "moveto <Track #>"; usage = Main.getMainBiscuit().getProperties().getCommandSignifier() + "moveto <CurrentTrack #> <NewTrack #>";
minArgs = 2; minArgs = 2;
maxArgs = 2; maxArgs = 2;
identifiers.add("moveto"); identifiers.add("moveto");

View File

@ -1,33 +0,0 @@
package com.fpghoti.biscuit.commands.client.music;
import com.fpghoti.biscuit.Main;
import com.fpghoti.biscuit.biscuit.Biscuit;
import com.fpghoti.biscuit.commands.base.MusicClientCommand;
import com.fpghoti.biscuit.rest.MessageText;
import com.fpghoti.biscuit.util.PermUtil;
import net.dv8tion.jda.api.events.message.guild.GuildMessageReceivedEvent;
public class WipeQueueCommand extends MusicClientCommand{
public WipeQueueCommand() {
name = "Wipe Queue";
description = "Removes all upcoming tracks from the queue.";
usage = Main.getMainBiscuit().getProperties().getCommandSignifier() + "wipequeue";
minArgs = 0;
maxArgs = 0;
identifiers.add("wipequeue");
identifiers.add("wipeq");
}
@Override
public void execute(String[] args, GuildMessageReceivedEvent event) {
Biscuit b = Biscuit.getBiscuit(event.getGuild());
b.log(event.getAuthor().getName() + " issued a command: -wipequeue");
if(PermUtil.hasMusicControl(event.getMember())) {
b.getAudioScheduler().wipeQueue();
MessageText.send(event.getChannel(), "Removed upcoming songs from the music queue.");
}
}
}