update help cmd
All checks were successful
Deploy to Dokku / docker (ubuntu-latest) (push) Successful in 1m8s

This commit is contained in:
Lee 2025-01-06 05:16:01 +00:00
parent fc1216be25
commit d3661127cf

View File

@ -106,7 +106,7 @@ public class HelpCommand extends BatCommand implements EventListener {
continue; continue;
} }
long commandCount = commandService.getCommandsByCategory(category, ranInsideGuild).size(); long commandCount = commandService.getCommandsByCategory(category, ranInsideGuild).size();
categories.append("- %s: `%s Command%s`\n".formatted( categories.append("- %s: **%s Command%s**\n".formatted(
category.getName(), category.getName(),
commandCount, commandCount,
commandCount == 1 ? "" : "s" commandCount == 1 ? "" : "s"
@ -115,13 +115,15 @@ public class HelpCommand extends BatCommand implements EventListener {
return EmbedUtils.genericEmbed() return EmbedUtils.genericEmbed()
.setDescription(""" .setDescription("""
**Welcome to the Bat Help Menu!**%s **Welcome to the Bat Help Menu!**
%s Bat is a multi-purpose bot that has a variety of features to help you with your server. You can change the category be clicking on the category name in the list below.
%s%s
*View our [TOS](%s) and [Privacy Policy](%s) for more information.* *View our [TOS](%s) and [Privacy Policy](%s) for more information.*
""".formatted( """.formatted(
!ranInsideGuild ? "\n*guild only commands won't be shown here*" : "",
categories.toString(), categories.toString(),
!ranInsideGuild ? "\n*guild only commands won't be shown here*" : "",
Consts.TERMS_OF_SERVICE_URL, Consts.TERMS_OF_SERVICE_URL,
Consts.PRIVACY_POLICY_URL Consts.PRIVACY_POLICY_URL
)) ))