Introducing loop command

This commit is contained in:
GregTCLTK 2020-01-06 18:21:49 +01:00
parent b79e1fbf74
commit 305e17568f
No known key found for this signature in database
GPG key ID: A91BADE5C070FF67
3 changed files with 39 additions and 1 deletions

View file

@ -102,7 +102,8 @@ public class Hadder {
new VolumeCommand(), new VolumeCommand(),
new StopCommand(), new StopCommand(),
new BlacklistCommand(), new BlacklistCommand(),
new PauseCommand()), config, helpCommand); new PauseCommand(),
new LoopCommand()), config, helpCommand);
builder.addEventListeners( builder.addEventListeners(
new MentionListener(rethink), new MentionListener(rethink),

View file

@ -0,0 +1,36 @@
package com.bbn.hadder.commands.music;
import com.bbn.hadder.commands.Command;
import com.bbn.hadder.commands.CommandEvent;
/**
* @author Skidder / GregTCLTK
*/
public class LoopCommand implements Command {
@Override
public void executed(String[] args, CommandEvent event) {
}
@Override
public String[] labels() {
return new String[]{"loop", "repeat"};
}
@Override
public String description() {
return "commands.music.loop.help.description";
}
@Override
public String usage() {
return null;
}
@Override
public String example() {
return null;
}
}

View file

@ -237,6 +237,7 @@ commands.music.pause.error.paused.description = The song is already paused.
commands.music.pause.error.connected.title = No channel commands.music.pause.error.connected.title = No channel
commands.music.pause.error.connected.description = You have to be in the same voice channel as the bot to pause the song. commands.music.pause.error.connected.description = You have to be in the same voice channel as the bot to pause the song.
commands.music.pause.help.description = Pause the playing song. commands.music.pause.help.description = Pause the playing song.
commands.music.loop.help.description = Repeats a song/queue.
commands.nsfw.gif.error.title = GIF not showing? Click here commands.nsfw.gif.error.title = GIF not showing? Click here
commands.nsfw.img.error.title = Image not showing? Click here commands.nsfw.img.error.title = Image not showing? Click here