diff --git a/src/main/java/net/cybercake/discordmusicbot/commands/list/Help.java b/src/main/java/net/cybercake/discordmusicbot/commands/list/Help.java new file mode 100644 index 0000000..38b753d --- /dev/null +++ b/src/main/java/net/cybercake/discordmusicbot/commands/list/Help.java @@ -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(); + } + +} diff --git a/src/main/java/net/cybercake/discordmusicbot/commands/list/developer/ListAllActiveServers.java b/src/main/java/net/cybercake/discordmusicbot/commands/list/developer/ShowUses.java similarity index 94% rename from src/main/java/net/cybercake/discordmusicbot/commands/list/developer/ListAllActiveServers.java rename to src/main/java/net/cybercake/discordmusicbot/commands/list/developer/ShowUses.java index b7320eb..75dd09b 100644 --- a/src/main/java/net/cybercake/discordmusicbot/commands/list/developer/ListAllActiveServers.java +++ b/src/main/java/net/cybercake/discordmusicbot/commands/list/developer/ShowUses.java @@ -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); } diff --git a/src/main/java/net/cybercake/discordmusicbot/constant/Colors.java b/src/main/java/net/cybercake/discordmusicbot/constant/Colors.java index cfba6a1..1f9e0a7 100644 --- a/src/main/java/net/cybercake/discordmusicbot/constant/Colors.java +++ b/src/main/java/net/cybercake/discordmusicbot/constant/Colors.java @@ -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;