1
0
forked from Fascinated/Bat

cleanup and acc country flag to ss me and user command

This commit is contained in:
Lee
2024-06-27 16:30:47 +01:00
parent 50b921c66d
commit 406d6b7164
3 changed files with 15 additions and 6 deletions
src/main/java/cc/fascinated/bat
command/impl
features/scoresaber/command/scoresaber
service

@ -93,7 +93,7 @@ public class ScoreSaberCommand extends BatCommand {
.addField("PP", NumberUtils.formatNumberCommas(account.getPp()), true)
.addField("Joined", "<t:%s>".formatted(DateUtils.getDateFromString(account.getFirstSeen()).toInstant().toEpochMilli() / 1000), true)
.setTimestamp(LocalDateTime.now())
.setFooter(fetchTime > 3 ? "Fetched in %sms".formatted(fetchTime) : "Cached", null)
.setFooter(fetchTime > 3 ? "Fetched in %sms".formatted(fetchTime) : "Cached", "https://flagcdn.com/h120/%s.png".formatted(account.getCountry().toLowerCase()))
.setColor(Colors.DEFAULT)
.build()).queue();
} catch (RateLimitException ex) {