update pp size command
All checks were successful
Deploy to Dokku / docker (ubuntu-latest) (push) Successful in 50s

This commit is contained in:
Lee 2024-07-06 19:36:27 +01:00
parent 16bbda57f6
commit 2627b80148

@ -37,9 +37,17 @@ public class PPSizeCommand extends BatCommand {
Member targetMember = userOption.getAsMember(); Member targetMember = userOption.getAsMember();
assert targetMember != null; // This should never be null assert targetMember != null; // This should never be null
int size = (int) MathUtils.random(1, 12);
event.replyEmbeds(EmbedUtils.genericEmbed() event.replyEmbeds(EmbedUtils.genericEmbed()
.setDescription(new EmbedDescriptionBuilder("PP Size") .setDescription(new EmbedDescriptionBuilder("PP Size")
.appendLine("The size of " + targetMember.getAsMention() + "'s pp is " + (int) (MathUtils.random(1, 8)) + " inches", false) .appendLine("""
The size of %s's pp is %s inches
8%sD
""".formatted(
targetMember.getAsMention(),
size,
"=".repeat(size)
), false)
.build()) .build())
.build()).queue(); .build()).queue();
} }