-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3559f11
commit 095b4bd
Showing
3 changed files
with
59 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
57 changes: 57 additions & 0 deletions
57
src/main/java/com/beanbeanjuice/command/fun/TeamCommand.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
package com.beanbeanjuice.command.fun; | ||
|
||
import com.beanbeanjuice.utility.command.CommandCategory; | ||
import com.beanbeanjuice.utility.command.ICommand; | ||
import net.dv8tion.jda.api.events.interaction.command.SlashCommandInteractionEvent; | ||
import net.dv8tion.jda.api.interactions.commands.OptionType; | ||
import net.dv8tion.jda.api.interactions.commands.build.OptionData; | ||
import org.jetbrains.annotations.NotNull; | ||
|
||
import java.util.ArrayList; | ||
|
||
/** | ||
* An {@link ICommand} used to choose/make teams. | ||
* | ||
* @author beanbeanjuice | ||
*/ | ||
public class TeamCommand implements ICommand { | ||
|
||
@Override | ||
public void handle(@NotNull SlashCommandInteractionEvent event) { | ||
|
||
// TODO: Default - Any amount of users. | ||
// TODO: Allow infinite players if no player amount specified. | ||
// TODO: Default - 2 teams | ||
|
||
} | ||
|
||
@NotNull | ||
@Override | ||
public String getDescription() { | ||
return null; | ||
} | ||
|
||
@NotNull | ||
@Override | ||
public String exampleUsage() { | ||
return "`/team` or `/team 5` or `/team 5 2`"; | ||
} | ||
|
||
@NotNull | ||
@Override | ||
public ArrayList<OptionData> getOptions() { | ||
ArrayList<OptionData> options = new ArrayList<>(); | ||
|
||
options.add(new OptionData(OptionType.INTEGER, "players", "The amount of players per team.", false)); | ||
options.add(new OptionData(OptionType.INTEGER, "teams", "The number of teams.", false)); | ||
|
||
return options; | ||
} | ||
|
||
@NotNull | ||
@Override | ||
public CommandCategory getCategoryType() { | ||
return CommandCategory.FUN; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters