update ppize
All checks were successful
Deploy to Dokku / docker (ubuntu-latest) (push) Successful in 1m7s

This commit is contained in:
Lee
2025-01-09 21:46:16 +00:00
parent ae741e1f13
commit f3aad3925a

View File

@ -30,6 +30,9 @@ import org.springframework.stereotype.Component;
category = Category.FUN
)
public class PPSizeCommand extends BatCommand {
private final int maxSize = 12;
private final int minSize = 1;
public PPSizeCommand() {
super.addOptions(new OptionData(OptionType.USER, "user", "The user you want to get the pp size of", true));
}
@ -40,15 +43,16 @@ public class PPSizeCommand extends BatCommand {
assert userOption != null; // This should never be null
User target = userOption.getAsUser();
int size = (int) MathUtils.random(1, 12);
int size = (int) MathUtils.random(minSize, maxSize);
event.replyEmbeds(EmbedUtils.genericEmbed()
.setDescription(new DescriptionBuilder("PP Size")
.appendLine("""
The size of %s's pp is %s inches
The size of %s's pp is %s inches%s
**8%sD**
""".formatted(
target.getAsMention(),
size,
size == maxSize ? " 😳" : "",
"=".repeat(size)
), false)
.build())