add hours, tracker score and rearange the order

This commit is contained in:
Ayden Jahola 2024-10-02 14:49:54 +01:00
parent fce106fccf
commit c5eb5f21c8
No known key found for this signature in database
GPG key ID: 71DD90AE4AE92742

View file

@ -47,6 +47,7 @@ module.exports = {
const statsEmbed = new EmbedBuilder() const statsEmbed = new EmbedBuilder()
.setColor("#0099ff") .setColor("#0099ff")
.setTitle(`${data.username}'s Valorant Stats`) .setTitle(`${data.username}'s Valorant Stats`)
.setDescription(`${data.username}'s **${data.season}** stats`)
.addFields( .addFields(
{ {
name: "🏆 Current Rank", name: "🏆 Current Rank",
@ -56,12 +57,20 @@ module.exports = {
name: "🔝 Peak Rank", name: "🔝 Peak Rank",
value: data.peak_rank, value: data.peak_rank,
}, },
{ name: "⚔️ Kills", value: `${data.kills}` }, {
{ name: "🏅 Wins", value: `${data.wins}` }, name: "⏳ Hours Played",
value: `${data.hours_played}h`,
},
{ {
name: "🎮 Matches Played", name: "🎮 Matches Played",
value: `${data.matches_played}`, value: `${data.matches_played}`,
}, },
{ name: "🏅 Wins", value: `${data.wins}` },
{
name: "📊 Win Percentage",
value: `${data.win_percentage}%`,
},
{ name: "⚔️ Kills", value: `${data.kills}` },
{ {
name: "📈 K/D Ratio", name: "📈 K/D Ratio",
value: `${data.kd_ratio}`, value: `${data.kd_ratio}`,
@ -71,13 +80,13 @@ module.exports = {
value: `${data.headshot_percentage}%`, value: `${data.headshot_percentage}%`,
}, },
{ {
name: "📊 Win Percentage", name: "💯 Tracker Score",
value: `${data.win_percentage}%`, value: `${data.tracker_score}/1000`,
} }
) )
.setTimestamp() .setTimestamp()
.setFooter({ .setFooter({
text: "Valorant Stats Bot made by Ayden", text: "Valorant Stats API made by Ayden",
iconURL: interaction.guild.iconURL(), iconURL: interaction.guild.iconURL(),
}); });