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
|
category = Category.FUN
|
||||||
)
|
)
|
||||||
public class PPSizeCommand extends BatCommand {
|
public class PPSizeCommand extends BatCommand {
|
||||||
|
private final int maxSize = 12;
|
||||||
|
private final int minSize = 1;
|
||||||
|
|
||||||
public PPSizeCommand() {
|
public PPSizeCommand() {
|
||||||
super.addOptions(new OptionData(OptionType.USER, "user", "The user you want to get the pp size of", true));
|
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
|
assert userOption != null; // This should never be null
|
||||||
User target = userOption.getAsUser();
|
User target = userOption.getAsUser();
|
||||||
|
|
||||||
int size = (int) MathUtils.random(1, 12);
|
int size = (int) MathUtils.random(minSize, maxSize);
|
||||||
event.replyEmbeds(EmbedUtils.genericEmbed()
|
event.replyEmbeds(EmbedUtils.genericEmbed()
|
||||||
.setDescription(new DescriptionBuilder("PP Size")
|
.setDescription(new DescriptionBuilder("PP Size")
|
||||||
.appendLine("""
|
.appendLine("""
|
||||||
The size of %s's pp is %s inches
|
The size of %s's pp is %s inches%s
|
||||||
**8%sD**
|
**8%sD**
|
||||||
""".formatted(
|
""".formatted(
|
||||||
target.getAsMention(),
|
target.getAsMention(),
|
||||||
size,
|
size,
|
||||||
|
size == maxSize ? " 😳" : "",
|
||||||
"=".repeat(size)
|
"=".repeat(size)
|
||||||
), false)
|
), false)
|
||||||
.build())
|
.build())
|
||||||
|
Reference in New Issue
Block a user