Fix XP
All checks were successful
Build and Push Docker Image / build (push) Successful in 2m53s

This commit is contained in:
Melaine Gérard 2024-11-28 13:57:20 +01:00
parent 796111d525
commit 085e132846
2 changed files with 4 additions and 1 deletions

View File

@ -7,5 +7,6 @@ DB_PASSWORD=gachamelia
WELCOME_CHANNEL= WELCOME_CHANNEL=
STAFF_ROLE= STAFF_ROLE=
XP_EMOJI="<:id_6_xp:1311673719613292595>"
APP_VERSION=0.0.1 APP_VERSION=0.0.1
APP_DESCRIPTION="J'ai posé un pied à terre." APP_DESCRIPTION="J'ai posé un pied à terre."

View File

@ -13,6 +13,7 @@ import org.camelia.studio.gachamelia.models.User;
import org.camelia.studio.gachamelia.models.UserStat; import org.camelia.studio.gachamelia.models.UserStat;
import org.camelia.studio.gachamelia.repositories.StatRepository; import org.camelia.studio.gachamelia.repositories.StatRepository;
import org.camelia.studio.gachamelia.services.UserService; import org.camelia.studio.gachamelia.services.UserService;
import org.camelia.studio.gachamelia.utils.Configuration;
import org.camelia.studio.gachamelia.utils.EmbedUtils; import org.camelia.studio.gachamelia.utils.EmbedUtils;
import java.awt.*; import java.awt.*;
@ -63,7 +64,7 @@ public class FichePersoCommand implements ISlashCommand {
- Rareté : **%s** - Rareté : **%s**
- Rôle : **%s** - Rôle : **%s**
- Éléments : *%s* - Éléments : *%s*
- Xp : **%d** - %s : **%d**
- Emblème : **%s** - Emblème : **%s**
__Statistiques de combat__ : __Statistiques de combat__ :
""".formatted( """.formatted(
@ -71,6 +72,7 @@ public class FichePersoCommand implements ISlashCommand {
user.getRank().getName(), user.getRank().getName(),
user.getRole().getName(), user.getRole().getName(),
user.getElements().stream().map(Element::getName).reduce("", (a, b) -> a + ", " + b).substring(2), user.getElements().stream().map(Element::getName).reduce("", (a, b) -> a + ", " + b).substring(2),
Configuration.getInstance().getDotenv().get("XP_EMOJI", "XP"),
0, 0,
"Ø" "Ø"
)); ));