.masskill command added (bot owner only)

This commit is contained in:
Master Kwoth
2017-11-09 13:44:36 +01:00
parent df389804e4
commit ae3c456194
8 changed files with 119 additions and 9 deletions

View File

@ -33,6 +33,11 @@ namespace NadekoBot.Core.Services.Database.Repositories.Impl
public long GetUserCurrency(ulong userId) =>
GetOrCreate(userId).Amount;
public void RemoveFromMany(List<long> ids)
{
_set.RemoveRange(_set.Where(x => ids.Contains((long)x.UserId)));
}
public bool TryUpdateState(ulong userId, long change)
{
var cur = GetOrCreate(userId);