Merged v3 branch updates

This commit is contained in:
Kwoth
2021-12-21 23:36:31 +01:00
8 changed files with 31 additions and 25 deletions

View File

@@ -166,10 +166,6 @@ public class XpService : INService
{
var xp = item.Sum(x => x.XpAmount);
//1. Mass query discord users and userxpstats and get them from local dict
//2. (better but much harder) Move everything to the database, and get old and new xp
// amounts for every user (in order to give rewards)
var usr = uow.GetOrCreateUserXpStats(item.Key.GuildId, item.Key.User.Id);
var du = uow.GetOrCreateUser(item.Key.User);

View File

@@ -270,7 +270,7 @@ public partial class Xp : NadekoModule<XpService>
}
else
{
await ReplyConfirmLocalizedAsync(strs.excluded(Format.Bold(channel.ToString())));
await ReplyConfirmLocalizedAsync(strs.not_excluded(Format.Bold(channel.ToString())));
}
}