update ppize
All checks were successful
Deploy to Dokku / docker (ubuntu-latest) (push) Successful in 1m7s
All checks were successful
Deploy to Dokku / docker (ubuntu-latest) (push) Successful in 1m7s
This commit is contained in:
@ -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())
|
||||
|
Reference in New Issue
Block a user