Skip to content

Commit

Permalink
fix: 'user' command to show hardcore and softcore and don't lowercase…
Browse files Browse the repository at this point in the history
… usernames (#128)
  • Loading branch information
amine4567 authored Jun 3, 2024
1 parent f7c00a2 commit 406cbbb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions commands/rautil/user.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ module.exports = class User extends Command {
type: 'string',
prompt: 'What user would you like to fetch?',
default: '',
parse: (username) => username.toLowerCase(),
parse: (username) => username,
},
],
});
Expand Down Expand Up @@ -76,8 +76,8 @@ module.exports = class User extends Command {
`**${res.MemberSince}**`,
)
.addField(
':trophy: Rank | Points',
`Rank **${res.Rank}** | **${res.Points}** points`,
':trophy: Rank | Hardcore Points | Softcore Points',
`Rank **${res.Rank}** | **${res.TotalPoints.toLocaleString()}** points | **${res.TotalSoftcorePoints.toLocaleString()}** points`,
)
.addField(
`:video_game: Last game played (${res.RecentlyPlayed[0] ? res.RecentlyPlayed[0].LastPlayed : ''})`,
Expand Down

0 comments on commit 406cbbb

Please sign in to comment.