Use the correct unit when listing messages in a season
This commit is contained in:
parent
d477a4b056
commit
e495e2df17
1 changed files with 7 additions and 4 deletions
|
@ -106,10 +106,13 @@ namespace Geekbot.Bot.Commands.User.Ranking
|
||||||
replyBuilder.Append(user.Username != null
|
replyBuilder.Append(user.Username != null
|
||||||
? $"**{user.Username}#{user.Discriminator}**"
|
? $"**{user.Username}#{user.Discriminator}**"
|
||||||
: $"**{user.Id}**");
|
: $"**{user.Id}**");
|
||||||
|
|
||||||
replyBuilder.Append(type == HighscoreTypes.messages
|
replyBuilder.Append(type switch
|
||||||
? $" - {value} {type} - {Math.Round((double) (100 * value) / guildMessages, 2)}%\n"
|
{
|
||||||
: $" - {value} {type}\n");
|
HighscoreTypes.messages => $" - {value} {HighscoreTypes.messages} - {Math.Round((double) (100 * value) / guildMessages, 2)}%\n",
|
||||||
|
HighscoreTypes.seasons => $" - {value} {HighscoreTypes.messages}\n",
|
||||||
|
_ => $" - {value} {type}\n"
|
||||||
|
});
|
||||||
|
|
||||||
highscorePlace++;
|
highscorePlace++;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue