profile update with badges and achievements

This commit is contained in:
DeSqBlocki
2026-08-22 20:27:42 +02:00
parent c630543f9e
commit e437c051b9
7 changed files with 542 additions and 1441 deletions
+61
View File
@@ -11,6 +11,10 @@ const {
temporaryEphemeralReply
} = require("./cookieEconomy");
const {
trackProfileEvent
} = require("./profileSystem");
/*
* ============================================================
@@ -852,6 +856,63 @@ async function playRoulette(
bet;
await trackProfileEvent(
interaction,
playerId,
{
type:
"game_result",
game:
"roulette",
result:
profit > 0
? "win"
: profit < 0
? "loss"
: "push"
}
);
if (
profit >
0
) {
await trackProfileEvent(
interaction,
playerId,
{
type:
"cookie_gain",
amount:
profit
}
);
}
else if (
profit <
0
) {
await trackProfileEvent(
interaction,
playerId,
{
type:
"cookie_loss",
amount:
Math.abs(
profit
)
}
);
}
const resultEmbed =
new EmbedBuilder()
.setTitle(