Skip to content

Commit

Permalink
feat/adr (#450)
Browse files Browse the repository at this point in the history
  • Loading branch information
JustDams authored Jan 24, 2025
1 parent d9cde77 commit 14c4e44
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion commands/last.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ const getMatchItems = async (interaction, playerDatas, steamDatas, playerHistory
{ name: 'Assists', value: roundStats.i7, inline: true },
// Removed from faceit endpoint used by the api
// { name: 'Damages', value: roundStats?.i20 ?? 'N/A', inline: true },
// { name: 'ADR', value: roundStats?.c10 ?? 'N/A', inline: true },
{ name: 'ADR', value: roundStats?.c10 ?? 'N/A', inline: true },
// { name: 'Entries (WR)', value: entries, inline: true },
)
.setThumbnail(`attachment://${faceitElo}${i}.png`)
Expand Down
3 changes: 1 addition & 2 deletions functions/dateStats.js
Original file line number Diff line number Diff line change
Expand Up @@ -246,9 +246,8 @@ const generateDateStatsFields = (playerLastStats, head) => {
{ name: 'Avg Kills', value: playerLastStats['Average Kills'].toFixed(2), inline: true },
{ name: 'Avg Deaths', value: playerLastStats['Average Deaths'].toFixed(2), inline: true },
{ name: 'Avg Assists', value: playerLastStats['Average Assists'].toFixed(2), inline: true },
// Removed from faceit endpoint used by the api
// { name: 'Avg Damages', value: playerLastStats['Average Damages']?.toString() ?? 'N/A', inline: true },
// { name: 'Avg ADR', value: playerLastStats['Average ADR']?.toString() ?? 'N/A', inline: true },
{ name: 'Avg ADR', value: playerLastStats['Average ADR']?.toString() ?? 'N/A', inline: false },
// { name: 'Avg Entries (WR)', value: entries, inline: true },
{ name: 'Red K/D', value: playerLastStats['Red K/D'].toString(), inline: true },
{ name: 'Orange K/D', value: playerLastStats['Orange K/D'].toString(), inline: true },
Expand Down

0 comments on commit 14c4e44

Please sign in to comment.