Introducing loop command
This commit is contained in:
parent
b79e1fbf74
commit
305e17568f
3 changed files with 39 additions and 1 deletions
|
|
@ -102,7 +102,8 @@ public class Hadder {
|
|||
new VolumeCommand(),
|
||||
new StopCommand(),
|
||||
new BlacklistCommand(),
|
||||
new PauseCommand()), config, helpCommand);
|
||||
new PauseCommand(),
|
||||
new LoopCommand()), config, helpCommand);
|
||||
|
||||
builder.addEventListeners(
|
||||
new MentionListener(rethink),
|
||||
|
|
|
|||
36
src/main/java/com/bbn/hadder/commands/music/LoopCommand.java
Normal file
36
src/main/java/com/bbn/hadder/commands/music/LoopCommand.java
Normal 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;
|
||||
}
|
||||
}
|
||||
|
|
@ -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.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.loop.help.description = Repeats a song/queue.
|
||||
|
||||
commands.nsfw.gif.error.title = GIF not showing? Click here
|
||||
commands.nsfw.img.error.title = Image not showing? Click here
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue