From 2627b801488959095b30c12a97b2c45ed5e80829 Mon Sep 17 00:00:00 2001 From: Liam Date: Sat, 6 Jul 2024 19:36:27 +0100 Subject: [PATCH] update pp size command --- .../bat/features/base/commands/fun/PPSizeCommand.java | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/main/java/cc/fascinated/bat/features/base/commands/fun/PPSizeCommand.java b/src/main/java/cc/fascinated/bat/features/base/commands/fun/PPSizeCommand.java index e6042c2..25d96e6 100644 --- a/src/main/java/cc/fascinated/bat/features/base/commands/fun/PPSizeCommand.java +++ b/src/main/java/cc/fascinated/bat/features/base/commands/fun/PPSizeCommand.java @@ -37,9 +37,17 @@ public class PPSizeCommand extends BatCommand { Member targetMember = userOption.getAsMember(); assert targetMember != null; // This should never be null + int size = (int) MathUtils.random(1, 12); event.replyEmbeds(EmbedUtils.genericEmbed() .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()).queue(); }