mirror of
https://github.com/Jetsparrow/karmabot.git
synced 2026-01-21 09:06: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 awardTypeId = awardTypeIdQuery.First();
|
||||||
var awardType = db.AwardTypes.Find(awardTypeId);
|
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)
|
.Where(x => x.ChatId == args.Message.Chat.Id && x.AwardTypeId == awardTypeId)
|
||||||
.GroupBy(x => x.ToId)
|
.GroupBy(x => x.ToId)
|
||||||
.Select(x => new {UserId = x.Key, Amount = x.Sum(y => y.Amount)})
|
.Select(x => new {UserId = x.Key, Amount = x.Sum(y => y.Amount)})
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user