Skip to content

Commit

Permalink
Add help command for those who may need it
Browse files Browse the repository at this point in the history
  • Loading branch information
CyberedCake committed Feb 24, 2024
1 parent c762228 commit d483bba
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
package net.cybercake.discordmusicbot.commands.list;

import net.cybercake.discordmusicbot.commands.Command;
import net.cybercake.discordmusicbot.constant.Colors;
import net.dv8tion.jda.api.EmbedBuilder;
import net.dv8tion.jda.api.events.interaction.command.SlashCommandInteractionEvent;

public class Help extends Command {

public Help() {
super(
"help", "Contact information for the bot developer."
);
this.aliases = new String[]{"contact"};
}

@Override
public void command(SlashCommandInteractionEvent event) {
event.replyEmbeds(
new EmbedBuilder()
.setTitle("Need help?")
.setDescription("Contact the bot developer, CyberedCake, with the following information:")
.addField("Discord", "cyberedcake (<@351410272256262145>)", true)
.addField("X (Twitter)", "[@CyberedCake](https://x.com/CyberedCake)", true)
.setColor(Colors.CONTACT.get())
.build()
).queue();
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,13 @@
import net.dv8tion.jda.api.events.interaction.command.SlashCommandInteractionEvent;
import net.dv8tion.jda.api.interactions.commands.DefaultMemberPermissions;

import java.awt.*;
import java.util.List;
import java.util.Objects;

public class ListAllActiveServers extends Command {
public class ShowUses extends Command {

public ListAllActiveServers(){
super("listallactiveservers", "List all active servers");
public ShowUses(){
super("showuses", "List all active servers");
this.permission = DefaultMemberPermissions.enabledFor(Permission.ADMINISTRATOR);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ public enum Colors {
LIST(new Color(43, 255, 180)),
QUEUE(new Color(0, 65, 59)),
SHUTDOWN_FEEDBACK(new Color(62, 137, 255)),
ERROR(new Color(186, 24, 19));
ERROR(new Color(186, 24, 19)),
CONTACT(new Color(253, 204, 45));


private final Color color;
Expand Down

0 comments on commit d483bba

Please sign in to comment.