mirror of
https://github.com/Jetsparrow/karmabot.git
synced 2026-01-21 00:56:09 +03:00
Make leaderboard entries be seperated by newlines
This commit is contained in:
parent
8f31f9c809
commit
115138f9f9
@ -37,7 +37,7 @@ namespace JetKarmaBot.Commands
|
||||
var awardTypeId = awardTypeIdQuery.First();
|
||||
var awardType = db.AwardTypes.Find(awardTypeId);
|
||||
|
||||
response = string.Format(currentLocale["jetkarmabot.leaderboard.specifictext"], awardType.Symbol) + "\n" + string.Join(' ', db.Awards
|
||||
response = string.Format(currentLocale["jetkarmabot.leaderboard.specifictext"], awardType.Symbol) + "\n" + string.Join('\n', db.Awards
|
||||
.Where(x => x.ChatId == args.Message.Chat.Id && x.AwardTypeId == awardTypeId)
|
||||
.GroupBy(x => x.ToId)
|
||||
.Select(x => new {UserId = x.Key, Amount = x.Sum(y => y.Amount)})
|
||||
|
||||
Loading…
Reference in New Issue
Block a user