format numbers on botstats command
All checks were successful
Deploy to Dokku / docker (ubuntu-latest) (push) Successful in 42s
All checks were successful
Deploy to Dokku / docker (ubuntu-latest) (push) Successful in 42s
This commit is contained in:
parent
729e0b482b
commit
5ce5ef6898
@ -3,6 +3,7 @@ package cc.fascinated.bat.command.impl.general;
|
|||||||
import cc.fascinated.bat.command.BatCommand;
|
import cc.fascinated.bat.command.BatCommand;
|
||||||
import cc.fascinated.bat.command.CommandInfo;
|
import cc.fascinated.bat.command.CommandInfo;
|
||||||
import cc.fascinated.bat.common.EmbedUtils;
|
import cc.fascinated.bat.common.EmbedUtils;
|
||||||
|
import cc.fascinated.bat.common.NumberFormatter;
|
||||||
import cc.fascinated.bat.common.TimeUtils;
|
import cc.fascinated.bat.common.TimeUtils;
|
||||||
import cc.fascinated.bat.model.BatGuild;
|
import cc.fascinated.bat.model.BatGuild;
|
||||||
import cc.fascinated.bat.model.BatUser;
|
import cc.fascinated.bat.model.BatUser;
|
||||||
@ -42,14 +43,14 @@ public class BotStatsCommand extends BatCommand {
|
|||||||
|
|
||||||
interaction.replyEmbeds(EmbedUtils.genericEmbed().setDescription(
|
interaction.replyEmbeds(EmbedUtils.genericEmbed().setDescription(
|
||||||
"**Bot Statistics**\n" +
|
"**Bot Statistics**\n" +
|
||||||
"➜ Guilds: **%s**\n".formatted(jda.getGuilds().size()) +
|
"➜ Guilds: **%s**\n".formatted(NumberFormatter.format(jda.getGuilds().size())) +
|
||||||
"➜ Users: **%s**\n".formatted(jda.getUsers().size()) +
|
"➜ Users: **%s**\n".formatted(NumberFormatter.format(jda.getUsers().size())) +
|
||||||
"➜ Gateway Ping: **%sms**\n".formatted(jda.getGatewayPing()) +
|
"➜ Gateway Ping: **%sms**\n".formatted(jda.getGatewayPing()) +
|
||||||
"\n" +
|
"\n" +
|
||||||
"**Bat Statistics**\n" +
|
"**Bat Statistics**\n" +
|
||||||
"➜ Uptime: **%s**\n".formatted(TimeUtils.format(bean.getUptime())) +
|
"➜ Uptime: **%s**\n".formatted(TimeUtils.format(bean.getUptime())) +
|
||||||
"➜ Cached Guilds: **%s**\n".formatted(guildService.getGuilds().size()) +
|
"➜ Cached Guilds: **%s**\n".formatted(NumberFormatter.format(guildService.getGuilds().size())) +
|
||||||
"➜ Cached Users: **%s**".formatted(userService.getUsers().size())
|
"➜ Cached Users: **%s**".formatted(NumberFormatter.format(userService.getUsers().size()))
|
||||||
).build()).queue();
|
).build()).queue();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user